a problem I cannot understand... - 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: a problem I cannot understand... (
/showthread.php?tid=530960)
a problem I cannot understand... -
Don_Cage - 10.08.2014
Hello, i've made some simple dynamic vehicle system, but I have one problem, after creating more than 2 vehicles on server startup, so what actually I mean? Every time I restart server I am able to add 2 vehicles after that every vehicle ini will be empty and I cannot figure out why that actually?
I did debug on command and seems it's around ini close after writing the data...
So the part with debugging...
First and second...
The third vehicle...
What can cause this problem? Its first time this happens, i've made house system on same way and all works fine... O.o
Here is the part with saving the data but I dont see problem in ''saving'' but yet ini would be empty after crreating ''third'' vehicle.
Re: a problem I cannot understand... -
Jefff - 10.08.2014
Maybe in missing INI_Close in SaveVehicles ? and debug vehicleid and sizeof cInfo
Re: a problem I cannot understand... -
Don_Cage - 10.08.2014
Quote:
Originally Posted by Jefff
Maybe in missing INI_Close in SaveVehicles ? and debug vehicleid and sizeof cInfo
|
hahahhahahahaha yea omg I almost got headchase about this, indeed it was problem in closing the file after writing the data........ It's 4am here dont mind I need a nap
Anyway thanks. Rep+