SSCANF WARNING: STRING BUFFERS OVERFLOW - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SSCANF WARNING: STRING BUFFERS OVERFLOW (
/showthread.php?tid=520990)
SSCANF WARNING: STRING BUFFERS OVERFLOW -
Hillo - 21.06.2014
Hello all please help me with this problem its about ppc_housing bug:
In the samp-server.exe it saysing after the ppc housing is loaded: sscanf warning string buffers overflow
In-game my houses is loading, but /gohome and other dialogs in the house system isn't working i have all return 0 in ondialogresponse.
I didn't change anything it came automatically!! How to fix it please

?
I have all plugins so thats not the problem (?)
Heres the code of the script:
http://users.telenet.be/vge/download...PC_Housing.pwn

please help me
Re: SSCANF WARNING: STRING BUFFERS OVERFLOW -
[WSF]ThA_Devil - 21.06.2014
that means that in sscanf: you have buffer overflowing.
s[50]s[50]
Think that it is this line. Try increasing numbers on it, and see what happens.
Re: SSCANF WARNING: STRING BUFFERS OVERFLOW -
Hillo - 21.06.2014
Now i changed the max houses to lower, now i ain't getting the warning but still the dialogs isnt working
Re: SSCANF WARNING: STRING BUFFERS OVERFLOW -
[WSF]ThA_Devil - 21.06.2014
Quote:
Originally Posted by Hillo
Now i changed the max houses to lower, now i ain't getting the warning but still the dialogs isnt working
|
I suggest you using enum or EasyDialog include for dialogs, so the id do not collide.
Re: SSCANF WARNING: STRING BUFFERS OVERFLOW -
Hillo - 21.06.2014
Quote:
Originally Posted by [WSF]ThA_Devil
I suggest you using enum or EasyDialog include for dialogs, so the id do not collide.
|
And how i can do that

?
Re: SSCANF WARNING: STRING BUFFERS OVERFLOW -
[WSF]ThA_Devil - 21.06.2014
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Re: SSCANF WARNING: STRING BUFFERS OVERFLOW -
Hillo - 21.06.2014
Can you just please tell me, i dont understand?