sscanf warning: Strings without a length are deprecated, please add a destination size.
#4

Quote:
Originally Posted by jlalt
Посмотреть сообщение
You've forgot to define string size. simple add the size inside [ and ] after s.
ex:
PHP код:
s[50
PHP код:
if(sscanf(params"uds[50]"targetidamountreason)) 
Quote:
Originally Posted by Vince
Посмотреть сообщение
Yes. Strings without a length are deprecated. You must add a destination size.

Код:
sscanf(params, "uds[50]", targetid, amount, reason)
Thanks. Fixed the warning.
Reply


Messages In This Thread
sscanf warning: Strings without a length are deprecated, please add a destination size. - by YoDawg - 22.07.2017, 10:20
Re: sscanf warning: Strings without a length are deprecated, please add a destination size. - by jlalt - 22.07.2017, 10:22
Re: sscanf warning: Strings without a length are deprecated, please add a destination size. - by Vince - 22.07.2017, 10:22
Re: sscanf warning: Strings without a length are deprecated, please add a destination size. - by YoDawg - 22.07.2017, 10:32

Forum Jump:


Users browsing this thread: 2 Guest(s)