SA-MP Forums Archive
timer sometime starting, sometime not - 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: timer sometime starting, sometime not (/showthread.php?tid=302013)



timer sometime starting, sometime not - gagnier91 - 06.12.2011

Hi, im trying to make a kind of fuel system, but my timer dont seem to be working... Some time it start, and other time it doesn't... i dont understand why...

the code is on pastebin : http://pastebin.com/zCaFGmXd

Thank you for your help


Re: timer sometime starting, sometime not - jamesbond007 - 06.12.2011

Are u sure u wanna post public ur SQL Info?

i recommend deleting it unless u want people to play with ur db


Re : timer sometime starting, sometime not - gagnier91 - 06.12.2011

it is local and my port are closed, so only me can connect to it


Re: timer sometime starting, sometime not - JamesC - 06.12.2011

Oh wow, this is a very bad way to use MySQL. You should handle all information that changes frequently within the script. Create a variable to store gas information and only save it in the database when the player disconnects.


Re : timer sometime starting, sometime not - gagnier91 - 06.12.2011

maybe, but if i want to do it that way, what is wrong with this?