SA-MP Forums Archive
Sscanf crash whit float - 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 crash whit float (/showthread.php?tid=615987)



Sscanf crash whit float - AlexPalermitano97 - 29.08.2016

Why, using scanf, float, crashes samp? I have updated plugins and includes all latest version. It does not by any error, you automatically close the samp servers.

I use if(sscanf(params, "f", health)) return exc..

Sorry for my english but im italian


Re: Sscanf crash whit float - Shinja - 29.08.2016

Show more code. it prints something on the server log? you using crashdetect?


Re: Sscanf crash whit float - AlexPalermitano97 - 29.08.2016

Crashinfo not from errors and even log server ... Why I crash when I use a float variable? It only uses the f in the latest version?


Re: Sscanf crash whit float - AlexPalermitano97 - 30.08.2016

Uppp


Re: Sscanf crash whit float - F1N4L - 30.08.2016

Show the command....


Re: Sscanf crash whit float - AlexPalermitano97 - 05.09.2016

Only command that uses the float params


Re: Sscanf crash whit float - Konstantinos - 05.09.2016

You haven't provided anything so don't expect people to just guess what the problem may be.

There is currently no issue with "f" specifier in sscanf (plugin version). Unless you load crashdetect plugin as Shinja suggested and when the server automatically closes post the server log, there's not much we can do.


Re: Sscanf crash whit float - AlexPalermitano97 - 06.09.2016

How do I install the crack detected? It puts the dll in the plugins and that's it?


Re: Sscanf crash whit float - Konstantinos - 06.09.2016

Yes, add the plugin file into plugins folder and add its name in plugins line (in server.cfg). Basically loading the plugin only, nothing else.


Re: Sscanf crash whit float - AlexPalermitano97 - 06.09.2016

And then I have to send the log server?