using sscanf for optional integer inputs at the end of a command ( possible?)
#2

I haven't tested, but there is an optional string you can use in sscanf, so maybe store the amount on a string and then use strval() to get the integer from it?

pawn Код:
if(sscanf(params, "iz", wid, amount)) return 0;
Reply


Messages In This Thread
using sscanf for optional integer inputs at the end of a command ( possible?) - by iLinx - 31.07.2009, 18:59
Re: using sscanf for optional integer inputs at the end of a command ( possible?) - by MadeMan - 31.07.2009, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)