SA-MP Forums Archive
Weird bug, anyone know how to fix it - 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: Weird bug, anyone know how to fix it (/showthread.php?tid=308146)



Weird bug, anyone know how to fix it - LiamM - 02.01.2012

Hey guys well I have a dynamic org system but i've noticed after a server restart the dynamic CP seems to have moved a little bit to the left, and it keeps moving and moving after a restart... Any idea?


Re: Weird bug, anyone know how to fix it - silvan - 02.01.2012

erm you mean a web-based CP ? can you write more details, because its not so clear.or you mean something In-game?


Re: Weird bug, anyone know how to fix it - LiamM - 02.01.2012

I mean ingame, CP being checkpoint. On restarting the server the checkpoints move slightly to the left... its weird.


Re: Weird bug, anyone know how to fix it - silvan - 02.01.2012

check that the cordinates are being provided accordingly well. Maybe you're getting the checkpoint cordinates from a database? that could make database especially SQL make sure it got Float as format of the field. otherwise its gonna mix your cordinates a bit. If its pawno i dunno i never had this problem :/ maybe if you post the code its more helpful for ya....


Re: Weird bug, anyone know how to fix it - LiamM - 02.01.2012

I think you've fixed it bro! The mysql field was set as VarChar for some reason... Can't remember doing that, but cheers bro! Don't know if its fixed but i'm sure it probably will be. Rep +


Re: Weird bug, anyone know how to fix it - LiamM - 02.01.2012

Note: Didn't fix it nothing wrong in pawn. Guess i'll have to deal with it, thanks for helping anyway


Re: Weird bug, anyone know how to fix it - silvan - 03.01.2012

np maybe it wasn't it but once i had the same problem and it gave me the same errors.


EDIT: btw, i forgot to tell you make sure to set it as FLOAT and 4 decimal places and 4 places before the decimal i forgot exactly how to do it thou xD althou i had to do it too when it was giving me errors.