14.04.2015, 11:43
well,in my script i got zcmd and strcmp ,both used,how can i detect if he wrote a command that doesnt exist in strcmp and ZCMD and send him error message?
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
return (!success ? SendClientMessage(playerid, -1, "Unknown command, use /help.") : 1);
You can't use OnPlayerCommandText if you included ZCMD |
You can't use OnPlayerCommandText if you included ZCMD.
If I understand what you want to do, you want to send an error message if the command doesn't exist with ZCMD. You must use OnPlayerCommandPerformed, like that PHP код:
|