19.06.2010, 08:41
Hello.
I've got a major problem.
My commands won't work. Here's the example of samp wiki:
Everything I try, I get the message 'SERVER: Unknown Command'.
Tried changing returns to 0, all way around, tried everything.
Just can't make the commands work.
HELP?
I've got a major problem.
My commands won't work. Here's the example of samp wiki:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/help", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
return 1;
/* Returning '1' is used to notify the server that the command
has successfully been processed. If you return true here you won't
get that 'SERVER: Unknown Command.', and any conflicts will be
avoided.
*/
}
return 0;
/* Returning '0' is used to inform the server that the command
has not been successfully processed, and passes it to other scripts.
If there hasn't been a successful process, then you will get that
'SERVER: Unknown Command.' error.
*/
}
Tried changing returns to 0, all way around, tried everything.
Just can't make the commands work.
HELP?