28.10.2013, 12:35
Learn sscanf or strtok. I recommend sscanf.
Example in ZCMD:
Example in ZCMD:
pawn Код:
CMD:apm(playerid,params[])
{
new Msg[128],ID;
if(AdminVar[playerid] == 0) return SendClientMessage(playerid,-1,"You not are a Admin");
if(sscanf(params,"ds[128]",playerid,Msg)) return SendClientMessage(playerid,-1,"Invalid ID/MSG");
SendClientMessage(ID,-1,Msg);
return 1;
}