Limit komandi

pre 2 meseca
132
pregleda
7
postova
Kriso_Anderson
Kingpin
pre 2 meseca
Naslov problema*: Limit komandu
Opis problema*:  Imam komandu /zone, e sad nebitno ona lepo radi, nakon toga dodajem komandu odvojeno od nje to jest nema veze uopste ni sa tim modulim niti ista, prosta komanda salje poruku igracu i resetuje mu vrednost. Fora je kada dodam tu komandu ne radi mi ovaj prva a uopste nisu povezane, sad ne znam imam oko 440 komandi na serveru, sad ne znam jel predjen neki limit ili sta

CMD:testing(playerid,params[])
{
    SendClientMessage(playerid,-1,"%d!",PlayerShootTick);
    PlayerShootTick = 0;
    return 1;
}

Nikakav error ne dobijmau server_logu

Ovo je compiler info
Header size:          72372 bytes
Code size:          5302460 bytes
Data size:        120249708 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4594 cells (18376 bytes)
Total requirements:125640924 bytes

Pokušaj rešavanja*:
Deo programskog koda*:
Debug informacije:
Fotografija problema u igri:
Korišćene biblioteke (includes):
Dodatne informacije:
Gagule
Made Man
pre 2 meseca
Koji komandni procesor koristis?
Kriso_Anderson
Kingpin
pre 2 meseca
#include

Ako mislis na ovo
Gagule
Made Man
pre 2 meseca
Shaw Salcedo wrote on November 22, 2025, 1:29 pm:
#include

Ako mislis na ovo


Nije mi jasno onda sledece: Ako koristis y_commands, kako si deklarisao komandu sa "CMD", a ne sa "YCMD"?
Kriso_Anderson
Kingpin
pre 2 meseca
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "modules/colors.pwn"
#include
#include
#include
#include

Ovo ti je lista mojih includova, odavno radim kao CMD, sad cu sve polako na YCMD da prebacim, ali odakle mi uzima uopste CMD:?
Kriso_Anderson
Kingpin
pre 2 meseca
Skinuo sam ovaj pawn.cmd sa neta i ono prebacio mod na njega
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
    return 1;
}
public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
    if(!IgracUlogovan)
    {
        SendClientMessage(playerid, COLOR_GREY, "Niste se prijavili, te ne mozete koristiti komande!");
        return 0;
    }
    if(!PlayerDataLoaded)
    {
        SendClientMessage(playerid, COLOR_GREY, "Sacekajte, ucitavanje u toku.");
        return 0;
    }
    if (result == -1)
    {
        SendClientMessage(playerid, COLOR_GREY, "Ova komanda ne postoji, kucajte /help da proverite koje komande postoje!");
        return 0;
    }
    if(GetPlayerState(playerid) == PLAYER_STATE_WASTED)//Ako je igrac umro
    {
        if(strcmp(cmd,"/askq"))//Ako komanda nije /p
        {
            SendClientMessage(playerid, COLOR_GREY, "Ne mozete unositi komande dok ste mrtvi.");
            return 0;
        }
    }
    new time = gettime();
    if(PI < 7) {
        if(SpamCommand > time )
        {
            SendClientMessage(playerid, COLOR_GREY, "Komande mozete unositi svake 2 sekunde!");
            return 0;
        }
        SpamCommand = 2 + time;
     }
    LogKomandi("CMD: '%s', player: '%s' [ID:%d]", "Server/LogKomandi.log", cmd,GetName(playerid),playerid);
   
   
    return 1;
}


E sad izbacuje mi pun klinac warninga
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "box" does not format 1 parameters.
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "box" does not format 1 parameters.
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "box" does not format 1 parameters.
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "~r~Izgubio si!" does not format 1 parameters.
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "Igrano puta: 0~n~Novca zaradjeno: ~g~$0~w~~h~~n~" does not format 1 parameters.
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "Unesite ulog" does not format 1 parameters.
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "Loading" does not format 1 parameters.
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "Odredjena radnja u toku..." does not format 1 parameters.
[2025-11-22T14:46:37+0100] ␇*** YSI Warning: Bare `___` usage found - make sure it is a function parameter.
[2025-11-22T14:46:37+0100] Insufficient specifiers given: "]]]]]]]]]]]]]]]]]]]]]]" does not format 1 parameters.


Sve je vezano za textdrawove?
Kriso_Anderson
Kingpin
pre 2 meseca
Sredjeno, updateovan YSI

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava