CMD Plugin?
#1

Hi all, i got a server hosted and all the scripts with "CMD: ...." in my gm arent working, What i can do?

All works nice but just the "CMD" commands

EX:

pawn Код:
CMD:ooc(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    strreplace(sendername, '_', ' ');
    format(string, sizeof(string), "(OOC-G) %s: %s", sendername, params);
    SendClientMessageToAll(COLOR_GREY, string);
    return 1;
}
I got NO errors!

*Server Hosted all worked fine than i modified a script (not GM script) i modified: return 0; with return 1; and stopped work :/
Reply
#2

Use the include that is meant for the command processor you use.
Reply
#3

Do u have zcmd in ur pawno> includes folder??
Also check u have written #include <zcmd> on top of your script.
Reply
#4

OK Now i got a stupid bug:
If i remove all the FS of my server the GM CMD: are workings but if i add the script all the gm CMD: arent working
Reply
#5

And how i can know what is?
Reply
#6

i did! but it wont work im disperate please help, if i delete all the FS the GM works if i add the FS the gm works in part, if i delete the scripts who i know are "broken" the GM wont work too" if i give you the scripts can you include in my GM?
Reply
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
If that's what broke it, why not undo it?
No, no! Try to fix the code first! By removing it, you'll learn nothing!
Reply
#8

Also keep in mind that you can't use ZCMD in combination with strcmp or dcmd commands- none of the commands will work then.

EDIT: UNLESS you are putting those commands into one of the ZCMD callbacks- I can't remember which one though! See the ZCMD thread for additional information.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)