Sscanf and Zcmd question
#4

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
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;
}
um, 30?
trucker is 7 chars so + 1 = 8
driver is 6 chars so + 1 = 7

so why you use 30 instead of 7-8-9?
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)