18.01.2011, 14:32
if someone know pls to tell me if someone wrong command to show on chat example wrong command use/cmds
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) return SendClientMessage(playerid, YourColor,"wrong command use/cmds";
return 1;
}
(1456) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed") |
Do you use ZCMD? |
ZCMD is a command system for pawn.
Anyways, what do you exactly want? |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
SendClientMessage(playerid, 0xAA3333AA,"This command doesn't exist! Use /cmd");
return 1;
}