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", amount, idx)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /giveproducts [bizid] [amount]");
as there's 2 parameters.