29.07.2012, 23:21
(if correct) You cannot use spaces within commands, you can use things like isnull to check if the params is null or use sscanf.
This is an example:
Using ZCMD and sscanf.
This is an example:
pawn Код:
CMD:tele(playerid, params[])
{
if(sscanf(params, "i", teleid)) return SendClientMessage(playerid, -1, "Usage: /tele [id]");
if(teleid == 1)
{
//If they typed /tele 1, do something here
}
return 1;
}