sscanf
#2

The "i" specifier signifies a required parameter, thus it does not accept a default value.
To allow a default value you should use the optional equivalent (capitalized ("I")).

So your code would be:
pawn Код:
if(sscanf(params,"I(500000)I(250000)S(For Sale)[128]",cost,payout,name))return SendClientMessage(playerid, 0xFF0000AA, "Usage: /createbiz [cost] [payout] [name]");
Reply


Messages In This Thread
sscanf - by SnG.Scot_MisCuDI - 16.03.2012, 03:40
Re: sscanf - by Thomas. - 16.03.2012, 06:57

Forum Jump:


Users browsing this thread: 1 Guest(s)