Sscanf and Zcmd question
#2

pawn Код:
CMD:job(playerid,params[])
{
     if(ssacnf(params, "s[30]", params[0]))return SendClientMessage(playerid, ~1, "USAGE: /job <job> (trucker/driver)");
     if(!strcmp(params[0], "trucker", true))
     {
           //Trucker code
     }
     else if(!strcmp(params[0], "driver", true))
     {
           //Driver code.
     }else SendClientMessage(playerid, ~1, "USAGE: /job <job> (trucker/driver)");
     return 1;
}
Reply


Messages In This Thread
Sscanf and Zcmd question - by sim_sima - 10.05.2011, 18:37
Re: Sscanf and Zcmd question - by Zh3r0 - 10.05.2011, 18:46
Re: Sscanf and Zcmd question - by sim_sima - 10.05.2011, 19:17
Re: Sscanf and Zcmd question - by Gh0sT_ - 10.05.2011, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)