sscanf warnings
#7

Quote:
Originally Posted by jlalt
Посмотреть сообщение
small letter for non optional parameter, capital letter for optional parameter which need to specif a default value for it too.
so if you wanna use S you gotta assign default value and a size.
default value inside () size inside []

so now we get that, your D needs a default value.

->
PHP код:
if(sscanf(params"s[32]dD(-1)"choiceidamount)) 
Well, I changed the code and I set the default value to 30 because my gang lockers are defined to 30 max.
And still when I restart the server the locker is being removed or not belongs to a family that I set it before.
Reply


Messages In This Thread
sscanf warnings - by roncohen7 - 25.07.2017, 09:18
Re: sscanf warnings - by Kane - 25.07.2017, 09:31
Re: sscanf warnings - by iLearner - 25.07.2017, 09:46
Re: sscanf warnings - by roncohen7 - 25.07.2017, 09:50
Re: sscanf warnings - by iLearner - 25.07.2017, 09:51
Re: sscanf warnings - by jlalt - 25.07.2017, 09:56
Re: sscanf warnings - by roncohen7 - 27.07.2017, 09:47

Forum Jump:


Users browsing this thread: 4 Guest(s)