13.07.2009, 14:33
Hi All, I have a problem whit a very simple command, but i'm very n00b.
The commands don't work and I have no error. Please Help!
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new idx; new cmd[256]; cmd=strtok(cmdtext,idx); if(strcmp(cmd, "/help", true, 10) == 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "* * * * * AIUTI * * * * *"); SendClientMessage(playerid, COLOR_ORANGE, "Per la lista comandi digita /cmds"); SendClientMessage(playerid, COLOR_ORANGE, "Per gli obiettivi digita /obiettivi"); SendClientMessage(playerid, COLOR_ORANGE, "Per i teleport digita /tele"); SendClientMessage(playerid, COLOR_ORANGE, "Per i crediti digita /crediti"); return 1; } return 0; }
![Sad](images/smilies/sad.gif)