SA-MP Forums Archive
MySQL messing up coords - 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: MySQL messing up coords (/showthread.php?tid=345686)



MySQL messing up coords - iTorran - 26.05.2012

I load vehicles from MySQL, and although I thought everything was going fine..
I have encountered a problem with MySQL, changing my floats.. which is very VERY annoying, as I dont want them changed..

If I put "3241.69995117" into MySQL, it changes it to "3241.7" but I NEED it to stay at "3241.69995117"
Does anyone know why it's doing that and if I can stop it?


Re: MySQL messing up coords - DreamOnIt - 26.05.2012

When you declare the field, explicitly write the quantity of maximum number of digits to the right of the decimal point.