Question regarding vehicle system
#9

I don't think there is a way to set vehicle ID's.
What you could do though is to create a vehicle even if the file isn't there and delete them when the loop has finished. I don't recommend doing that though, as it will cause an even worse fuss with ID's when you create cars in game then.

Another option is to run a loop when loading the cars. A loop that renames all the files in order.

PHP код:
CreateVehicle(........);
new 
String[100];
format(Stringsizeof(String), "Car %d"vehicleid);
Rename(oldname[], newname[]); 
As for the renaming, you have to take a look around the forum for how to do it.
Reply


Messages In This Thread
Question regarding vehicle system - by DaniceMcHarley - 18.02.2015, 14:30
Re: Question regarding vehicle system - by Misiur - 18.02.2015, 14:48
Re: Question regarding vehicle system - by Gammix - 18.02.2015, 15:02
Re: Question regarding vehicle system - by DaniceMcHarley - 19.02.2015, 07:39
Re: Question regarding vehicle system - by Gammix - 19.02.2015, 07:50
Re: Question regarding vehicle system - by DaniceMcHarley - 19.02.2015, 07:54
Re: Question regarding vehicle system - by $$inSane - 19.02.2015, 07:59
Re: Question regarding vehicle system - by DaniceMcHarley - 19.02.2015, 14:22
Re: Question regarding vehicle system - by Knappen - 19.02.2015, 15:25
Re: Question regarding vehicle system - by DaniceMcHarley - 19.02.2015, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)