[Help] +1 rep sscanf warning: No default value found
#2

You have to give a default value to D, which will make "amount" optional, let's say we want "amount" to be 10 if not specified:
pawn Код:
if(sscanf(params, "s[32]dD", choice, doorid, amount))
to
pawn Код:
if(sscanf(params, "s[32]dD(10)", choice, doorid, amount))
Also, you need to have 50 posts to give reputation.
Reply


Messages In This Thread
[Help] +1 rep sscanf warning: No default value found - by Dister_Robi - 21.07.2013, 11:19
Re: [Help] +1 rep sscanf warning: No default value found - by IstuntmanI - 21.07.2013, 11:22
Re: [Help] +1 rep sscanf warning: No default value found - by Dister_Robi - 21.07.2013, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)