18.02.2013, 11:56
So I made this for my GM that would asign all vehicles in the owned car folder to load with a license plate that would have 3 letters and then their vehicle ID.
It worked, but the variable "ownedcar[m]" did not load, which ended up making them all appear as Unowned cars IG (and nothing about them would save to the folders after loading).
Here is the code, how can I fix this/change it so that it works?
*It works fine without the SetVehicleNumberPlate things, but when I add that it doesn't load them as owned cars.
THANKS in advance!
jakejohnsonusa
PS: I'll Rep you if you want/care about a rep
It worked, but the variable "ownedcar[m]" did not load, which ended up making them all appear as Unowned cars IG (and nothing about them would save to the folders after loading).
Here is the code, how can I fix this/change it so that it works?
pawn Код:
new PlatePossible[][] ={"AVI", "ZIS", "VYQ", "AUB", "IFQ", "SQU", "QUG", "PTR", "BRW", "CTI", "BTA", "DPF", "EAG", "FPA", "GJD", "HFI", "JTV", "KUB", "LPQ", "MAT", "NXT", "OFY", "RES", "TEH", "SVP", "VAW", "WHF", "XQW", "YGJ", "ZGO", "KDF", "LTS", "JOS"};
new string[128];
new randdr = random(sizeof(PlatePossible));
format(string, sizeof(string), "%s - %d", PlatePossible[randdr], m);
ownedcar[m] = SetVehicleNumberPlate(CreateVehicle(CarInfo[m][cModel],CarInfo[m][cLocationx],CarInfo[m][cLocationy],CarInfo[m][cLocationz]+1.0,CarInfo[m][cAngle],CarInfo[m][cColorOne],CarInfo[m][cColorTwo],60000), string);
THANKS in advance!
jakejohnsonusa
PS: I'll Rep you if you want/care about a rep
