Help with SSCANF
#1

I'm making a command with sscanf,

pawn Код:
if(sscanf(params, "us[8]d", id, objetos, cantidad)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /dar [id/ParteNombre] [Arma-Bombas-Chaleco-Dinero] [cantidad]");
But, cantidad will only be used if the player tipes /dar dinero(/give money howmuch) or /dar bombas(/give bombs howmany), but if player tipes /dar arma(/give weapon), cantidad will not be used, and sscanf sends me how to use the command
pawn Код:
return SendClientMessage(playerid, COLOR_WHITE, "USO: /dar [id/ParteNombre] [Arma-Bombas-Chaleco-Dinero] [cantidad]");
Thanks
Reply


Messages In This Thread
Help with SSCANF - by The_Moddler - 04.10.2010, 18:53
Re: Help with SSCANF - by samgreen - 04.10.2010, 20:53
Re: Help with SSCANF - by smeti - 04.10.2010, 21:20
Re: Help with SSCANF - by The_Moddler - 04.10.2010, 21:27

Forum Jump:


Users browsing this thread: 1 Guest(s)