sscanf Warning: warning: 'z' is deprecated, consider using 'S' instead.?
#1

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:57Ban list
[
20:09:57] --------
[
20:09:57]  Loadedsamp.ban
[20:09:57
[
20:09:57
[
20:09:57Filterscripts
[20:09:57] ---------------
[
20:09:57]   Loaded 0 filterscripts.
[
20:09:57
 ---------------------
[
20:09:57Cops n Robbers 0.3z by iRoNMaNpR12
[20:09:57] ------------------------
[
20:09:57Number of vehicle models16
[20:10:17Incoming connection24.188.244.94:59682
[20:10:17] [joinironmenpr12 has joined the server (0:24.188.244.94)
[
20:10:24] [SPAWNironmenpr12 (0)
[
20:13:07] *Adminyea
[20:13:07] [ADMIN ACTIONironmenpr12 (0has used '/admin' to sayyea
[20:14:33] [BANK ROBBERYironmenpr12 (0has started a robbery at Los Santos Bank.
[
20:15:04] [BANK ROBBERYironmenpr12 (0has robbed $5160 from the Los Santos bank.
[
20:15:40] [ADMIN JAILironmenpr12 (0ok
[20:16:06sscanf warning'z' is deprecatedconsider using 'S' instead.
[
20:16:06sscanf warningNo default value found.
[
20:16:06sscanf warningStrings without a length are deprecatedplease add a destination size.
[
20:16:11sscanf warning'z' is deprecatedconsider using 'S' instead.
[
20:16:11sscanf warningNo default value found.
[
20:16:11sscanf warningFormat specifier does not match parameter count.
[
20:16:11] [ADMIN WARNironmenpr12 (0has been warned by a Server Admin
[
20:16:47] [PRISONironmenpr12 (0has been auto released from prison.
[
20:18:59] [partironmenpr12 has left the server (0:1
Reply
#2

you are using this specifier "z" in your gamemode. Simply change it to "s"
Reply
#3

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)",idreason
Reply
#4

ctrl+F and type "z" and press find, then simply change it to "s"
Reply
#5

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!
Reply
#6

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)",idreason
Reply
#7

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
Reply
#8

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
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)