max size of player pos - 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: max size of player pos (
/showthread.php?tid=377200)
max size of player pos -
marquezsanchez - 13.09.2012
hi i want know what is max number of number in player pos for save it in mysql.
Re: max size of player pos -
clarencecuzz - 13.09.2012
I would just say it's 5 digits long without decimals. So allow 10 digits for PlayerPos. I doubt anyone is going to travel for hours into the ocean at once. Example: 99999.99999 is probably the most you will ever get, not even that...
Re: max size of player pos -
marquezsanchez - 13.09.2012
ok thx
Re: max size of player pos -
Kirollos - 13.09.2012
don't make maximum size for a float in mysql.
just create it with that
"`X` FLOAT NOT NULL,
`Y` FLOAT NOT NULL,
`Z` FLOAT NOT NULL"
and etc..
Re: max size of player pos -
marquezsanchez - 13.09.2012
ok but i have a little probleme , in mysql the float value are separted with : "," and in pawn with "." i must change it with a little script or it automaticly change? // sorry for bad english :S