Server: Unknown Commands "/"
#3

BEER-samp, he wants to change the SERVER: Unknown command.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp(cmdtext, "/test", true, 5) == 0)
     {
         SendClientMessage(playerid, COLOR_YELLOW, "Text here!");
         return 1;
     }
     return SendClientMessage(playerid, COLOR_RED, "[ERROR]: This command doesn't exist. Please use /commands");
}
Reply


Messages In This Thread
Server: Unknown Commands "/" - by otiy - 29.04.2012, 18:36
Re: Server: Unknown Commands "/" - by mickos - 29.04.2012, 18:57
Re: Server: Unknown Commands "/" - by sniperwars - 29.04.2012, 19:03
Re: Server: Unknown Commands "/" - by mickos - 29.04.2012, 19:15
Re: Server: Unknown Commands "/" - by Littlehelper - 29.04.2012, 19:23
Re: Server: Unknown Commands "/" - by MP2 - 29.04.2012, 19:37
Re: Server: Unknown Commands "/" - by otiy - 29.04.2012, 19:39
Re: Server: Unknown Commands "/" - by otiy - 29.04.2012, 21:49
Re: Server: Unknown Commands "/" - by SuperViper - 30.04.2012, 04:08
Re: Server: Unknown Commands "/" - by otiy - 30.04.2012, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)