How can you create a /apm
#2

Learn sscanf or strtok. I recommend sscanf.

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;
}
Reply


Messages In This Thread
How can you create a /apm - by lulo356 - 28.10.2013, 12:33
Re: How can you create a /apm - by Dolby - 28.10.2013, 12:35
Re: How can you create a /apm - by Konstantinos - 28.10.2013, 13:07
Re: How can you create a /apm - by Brandon_More - 28.10.2013, 16:14
Re: How can you create a /apm - by Elie1996 - 11.11.2013, 20:15
Re: How can you create a /apm - by BodyBoardVEVO - 11.11.2013, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)