Invalid ID Help.
#9

Quote:
Originally Posted by MrCoder
Посмотреть сообщение
pawn Код:
if(sscanf(params, "ui", amount, idx)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /giveproducts [bizid] [amount]");
If it does not work, update your sscanf.
The sscanf specifier, u, is for Playerid's/names
Код:
u			User name/id (bots and players)
Your checking the business type, not the ID.

You also need
PHP код:
 if(sscanf(params"ii"amountidx)) return SendClientMessage(playeridCOLOR_WHITE"[Usage]: /giveproducts [bizid] [amount]"); 
as there's 2 parameters.
Reply


Messages In This Thread
Invalid ID Help. - by Laure - 03.11.2012, 11:18
Re: Invalid ID Help. - by DBan - 03.11.2012, 11:30
Re: Invalid ID Help. - by Laure - 03.11.2012, 11:36
Re: Invalid ID Help. - by lamarr007 - 03.11.2012, 11:40
Re: Invalid ID Help. - by Laure - 03.11.2012, 11:43
Re: Invalid ID Help. - by Laure - 03.11.2012, 12:05
Re: Invalid ID Help. - by MrCoder - 03.11.2012, 12:07
Re: Invalid ID Help. - by Private200 - 03.11.2012, 12:48
Re: Invalid ID Help. - by tyler12 - 03.11.2012, 13:21
Re: Invalid ID Help. - by Laure - 03.11.2012, 13:41

Forum Jump:


Users browsing this thread: 1 Guest(s)