sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
UserName31 - 17.07.2014
hey why am i getting this message in my server log ?
if ya need the script lmk
or tell me what ya need or some info like what does this means?
PHP код:
[20:09:57] Loaded.
[20:09:57] Loaded 2 plugins.
[20:09:57]
[20:09:57] Ban list
[20:09:57] --------
[20:09:57] Loaded: samp.ban
[20:09:57]
[20:09:57]
[20:09:57] Filterscripts
[20:09:57] ---------------
[20:09:57] Loaded 0 filterscripts.
[20:09:57]
---------------------
[20:09:57] Cops n Robbers 0.3z by iRoNMaNpR12
[20:09:57] ------------------------
[20:09:57] Number of vehicle models: 16
[20:10:17] Incoming connection: 24.188.244.94:59682
[20:10:17] [join] ironmenpr12 has joined the server (0:24.188.244.94)
[20:10:24] [SPAWN] ironmenpr12 (0)
[20:13:07] *Admin: yea
[20:13:07] [ADMIN ACTION] ironmenpr12 (0) has used '/admin' to say: yea
[20:14:33] [BANK ROBBERY] ironmenpr12 (0) has started a robbery at Los Santos Bank.
[20:15:04] [BANK ROBBERY] ironmenpr12 (0) has robbed $5160 from the Los Santos bank.
[20:15:40] [ADMIN JAIL] ironmenpr12 (0) ok
[20:16:06] sscanf warning: 'z' is deprecated, consider using 'S' instead.
[20:16:06] sscanf warning: No default value found.
[20:16:06] sscanf warning: Strings without a length are deprecated, please add a destination size.
[20:16:11] sscanf warning: 'z' is deprecated, consider using 'S' instead.
[20:16:11] sscanf warning: No default value found.
[20:16:11] sscanf warning: Format specifier does not match parameter count.
[20:16:11] [ADMIN WARN] ironmenpr12 (0) has been warned by a Server Admin.
[20:16:47] [PRISON] ironmenpr12 (0) has been auto released from prison.
[20:18:59] [part] ironmenpr12 has left the server (0:1)
Re: sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
Battlezone - 17.07.2014
you are using this specifier "z" in your gamemode. Simply change it to "s"
Re: sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
UserName31 - 17.07.2014
Quote:
Originally Posted by Battlezone
you are using this specifier "z" in your gamemode. Simply change it to "s"
|
oh nvm thanks bro i get it now
everytime i use /jail id reason it happen
like this?
PHP код:
sscanf(params,"uS[35](no reason)",id, reason)
Re: sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
Battlezone - 17.07.2014
ctrl+F and type "z" and press find, then simply change it to "s"
Re: sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
SilentSoul - 17.07.2014
Find your command, you're using this specifier, it seems like its '/admin' command if this didn't work just do Control + F and try to find "z"
EDIT: Ops sorry battlezone!
Re: sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
UserName31 - 17.07.2014
Quote:
Originally Posted by SilentSoul
Find your command, you're using this specifier, it seems like its '/admin' command if this didn't work just do Control + F and try to find "z"
EDIT: Ops sorry battlezone!
|
Quote:
Originally Posted by Battlezone
ctrl+F and type "z" and press find, then simply change it to "s"
|
Quote:
Originally Posted by Battlezone
you are using this specifier "z" in your gamemode. Simply change it to "s"
|
oh nvm thanks bro i get it now
everytime i use /jail id reason it happen
like this?
PHP код:
sscanf(params,"uS[35](no reason)",id, reason)
Re: sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
SilentSoul - 17.07.2014
I'm not sure but i think (no reason) is wrongly declared, the proper usage for me is :
pawn Код:
sscanf(params,"us[35]",id, reason)
Why are you using (no reason) btw, if you don't want to mention a reason you should remove the 's' specifier and reason also
Re: sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
UserName31 - 17.07.2014
Quote:
Originally Posted by SilentSoul
I'm not sure but i think (no reason) is wrongly declared, the proper usage for me is :
pawn Код:
sscanf(params,"us[35]",id, reason)
Why are you using (no reason) btw, if you don't want to mention a reason you should remove the 's' specifier and reason also
|
mines the same as yours that was just an example but thanks you +rep all
Re: sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.? -
Threshold - 17.07.2014
Quote:
Originally Posted by SilentSoul
I'm not sure but i think (no reason) is wrongly declared, the proper usage for me is :
pawn Код:
sscanf(params,"us[35]",id, reason)
Why are you using (no reason) btw, if you don't want to mention a reason you should remove the 's' specifier and reason also
|
It's called an 'optional parameter'... try reading the SSCANF thread sometime.
pawn Код:
sscanf(params, "uS(No Reason)[35]", id, reason))
Would be what you're after, but then again, everything you need to know has already been stated.