[Ajuda] SSCANF Warning - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] SSCANF Warning (
/showthread.php?tid=640378)
SSCANF Warning -
RuanPereira - 01.09.2017
Alguйm sabe resolver?
PHP код:
sscanf warning: Strings without a length are deprecated, please add a destination size.
Re: SSCANF Warning -
webby - 01.09.2017
can you show the code, please?
Respuesta: Re: SSCANF Warning -
RuanPereira - 01.09.2017
Quote:
Originally Posted by webby
can you show the code, please?
|
I do not know which code is giving this error.
Re: SSCANF Warning -
C4rtm4n - 01.09.2017
Verifique as strings dos seus cmds que usam Sscanf
Re: SSCANF Warning -
webby - 01.09.2017
like the warning said, you need to put a length to a string, like string[128].
Re: SSCANF Warning -
RodrigoMSR - 01.09.2017
Isso acontece quando vocк usa:
PHP код:
sscanf(params, "s", ...
Invйs de:
PHP код:
sscanf(params, "s[30]", ...
//Onde "30" seria o tamanho da array onde serб passada a string (destino)
Respuesta: Re: SSCANF Warning -
RuanPereira - 02.09.2017
Quote:
Originally Posted by RodrigoMSR
Isso acontece quando vocк usa:
PHP код:
sscanf(params, "s", ...
Invйs de:
PHP код:
sscanf(params, "s[30]", ...
//Onde "30" seria o tamanho da array onde serб passada a string (destino)
|
Obrigado, resolvi.