15.02.2012, 19:43
hello guys.
I've created a vehicle "system" but I have a problem.
When I create a vehicle (buy) it creates a new file (x.ini) , where x = highest number in the folder + 1.
I have two cars, ID 0 and ID 1 if i go somewhere with ID 0 than save position by leaving the car.
And I go to somewhere with ID 1 too,and I save it.
When I restart the server the cars aren't at the correct place.
ID 0 is at the default place,which was given when it was created,and ID 1 is at the new position of ID 0.
So how can I fix this problem?
And how can I make this code,to open all the files in the folder. (fore example AHSG.ini John_Smith.ini)
for( new x; x < 100; ++x )
Thanks![Cheesy](images/smilies/biggrin.png)
Greetings from Hungary
I've created a vehicle "system" but I have a problem.
When I create a vehicle (buy) it creates a new file (x.ini) , where x = highest number in the folder + 1.
I have two cars, ID 0 and ID 1 if i go somewhere with ID 0 than save position by leaving the car.
And I go to somewhere with ID 1 too,and I save it.
When I restart the server the cars aren't at the correct place.
ID 0 is at the default place,which was given when it was created,and ID 1 is at the new position of ID 0.
So how can I fix this problem?
And how can I make this code,to open all the files in the folder. (fore example AHSG.ini John_Smith.ini)
for( new x; x < 100; ++x )
Thanks
![Cheesy](images/smilies/biggrin.png)
Greetings from Hungary