sscanf - optional number?
#7

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Default values are enclosed in parentheses.
pawn Код:
if(sscanf(params, "S[128](default string)S[128](another string)D(500)", action, item, amount))
Result is; action = "default string", item = "another string" and amount = 500. If no params were entered. Also assuming your using the plugin.
action = needed string
item = optional string
amount = needed value if item is entered

I get undefined symbol on isnull, why? :S
Reply


Messages In This Thread
sscanf - optional number? - by Jack_Leslie - 07.10.2011, 07:25
Re: sscanf - optional number? - by [MWR]Blood - 07.10.2011, 07:28
Re: sscanf - optional number? - by Jack_Leslie - 07.10.2011, 07:36
Re: sscanf - optional number? - by iggy1 - 07.10.2011, 07:39
Re: sscanf - optional number? - by [MWR]Blood - 07.10.2011, 07:39
Re: sscanf - optional number? - by iggy1 - 07.10.2011, 07:42
Re: sscanf - optional number? - by Jack_Leslie - 07.10.2011, 07:46
Re: sscanf - optional number? - by iggy1 - 07.10.2011, 07:48
Re: sscanf - optional number? - by Jack_Leslie - 07.10.2011, 07:58

Forum Jump:


Users browsing this thread: 1 Guest(s)