22.08.2012, 20:39
Hi,
I'm trying to fix the vehicle plate system now, I managed to repair the ravens, car system. I edited the plate in the actual vehicle file to test, but in-game it still shows random letters/numbers instead of the text, any chance anyone knows why this is happening, I put "MATT" on the "Plate=" to "Plate=Matt" and still doesn't show it on the vehicle, so the vehicles can't be defining the plate properly.
Anyone have a fix for this? If possible, please help out. Will be releasing a full-fixed edit working version of ravens once all bugs are fixed up.
Thats the LOADCAR();
I'm trying to fix the vehicle plate system now, I managed to repair the ravens, car system. I edited the plate in the actual vehicle file to test, but in-game it still shows random letters/numbers instead of the text, any chance anyone knows why this is happening, I put "MATT" on the "Plate=" to "Plate=Matt" and still doesn't show it on the vehicle, so the vehicles can't be defining the plate properly.
Anyone have a fix for this? If possible, please help out. Will be releasing a full-fixed edit working version of ravens once all bugs are fixed up.
Код:
public LoadCar() { new file[26]; for(new idx = 1; idx < sizeof(CarInfo) ; idx++) { format(file, sizeof(file),"LARP/Vehicles/%d.ini", idx); CarInfo[idx][cModel] = dini_Int(file,"Model"); CarInfo[idx][cLocationx] = dini_Float(file,"Location_X"); CarInfo[idx][cLocationy] = dini_Float(file,"Location_Y"); CarInfo[idx][cLocationz] = dini_Float(file,"Location_Z"); CarInfo[idx][cAngle] = dini_Float(file,"Angle"); CarInfo[idx][cColorOne] = dini_Int(file,"Color_1"); CarInfo[idx][cColorTwo] = dini_Int(file,"Color_2"); strmid(CarInfo[idx][cOwner], dini_Get(file,"Owner"), 0, strlen(dini_Get(file,"Owner")), 255); CarInfo[idx][cOwned] = dini_Int(file,"Owned"); strmid(CarInfo[idx][cPlate], dini_Get(file,"Plate"), 0, strlen(dini_Get(file,"Plate")), 255); CarInfo[idx][cPlate] = dini_Int(file,"Plate"); CarInfo[idx][cLock] = dini_Int(file,"Locked"); CarInfo[idx][cID] = dini_Int(file,"ID"); CarInfo[idx][cPaintjob] = dini_Int(file,"Paintjob"); CarInfo[idx][cVirWorld] = dini_Int(file,"VirtualWorld"); CarInfo[idx][cUnused] = dini_Int(file,"Unused"); CarInfo[idx][cComponent0] = dini_Int(file,"Component0"); CarInfo[idx][cComponent1] = dini_Int(file,"Component1"); CarInfo[idx][cComponent2] = dini_Int(file,"Component2"); CarInfo[idx][cComponent3] = dini_Int(file,"Component3"); CarInfo[idx][cComponent4] = dini_Int(file,"Component4"); CarInfo[idx][cComponent5] = dini_Int(file,"Component5"); CarInfo[idx][cComponent6] = dini_Int(file,"Component6"); CarInfo[idx][cComponent7] = dini_Int(file,"Component7"); CarInfo[idx][cComponent8] = dini_Int(file,"Component8"); CarInfo[idx][cComponent9] = dini_Int(file,"Component9"); CarInfo[idx][cComponent10] = dini_Int(file,"Component10"); CarInfo[idx][cComponent11] = dini_Int(file,"Component11"); CarInfo[idx][cComponent12] = dini_Int(file,"Component12"); CarInfo[idx][cComponent13] = dini_Int(file,"Component13"); CarInfo[idx][cCode] = dini_Int(file,"SecurityCode"); CarInfo[idx][cParkTicket] = dini_Int(file,"TicketPrice"); strmid(CarInfo[idx][cTicketer], dini_Get(file,"Officer"), 0, strlen(dini_Get(file,"Officer")), 255); CarInfo[idx][cTrunkGun1] = dini_Int(file,"Gun1"); CarInfo[idx][cTrunkAmmo1] = dini_Int(file,"Ammo1"); CarInfo[idx][cTrunkGun2] = dini_Int(file,"Gun2"); CarInfo[idx][cTrunkAmmo2] = dini_Int(file,"Ammo2"); CarInfo[idx][cTrunkGun3] = dini_Int(file,"Gun3"); CarInfo[idx][cTrunkAmmo3] = dini_Int(file,"Ammo3"); CarInfo[idx][cTrunkGun4] = dini_Int(file,"Gun4"); CarInfo[idx][cTrunkAmmo4] = dini_Int(file,"Ammo4"); CarInfo[idx][cTrunkGun5] = dini_Int(file,"Gun5"); CarInfo[idx][cTrunkAmmo5] = dini_Int(file,"Ammo5"); CarInfo[idx][cTrunkGun6] = dini_Int(file,"Gun6"); CarInfo[idx][cTrunkAmmo6] = dini_Int(file,"Ammo6"); CarInfo[idx][cTrunkGun7] = dini_Int(file,"Gun7"); CarInfo[idx][cTrunkAmmo7] = dini_Int(file,"Ammo7"); CarInfo[idx][cTrunkGun8] = dini_Int(file,"Gun8"); CarInfo[idx][cTrunkAmmo8] = dini_Int(file,"Ammo8"); CarInfo[idx][cTrunkGun9] = dini_Int(file,"Gun9"); CarInfo[idx][cTrunkAmmo9] = dini_Int(file,"Ammo9"); CarInfo[idx][cTrunkGun10] = dini_Int(file,"Gun10"); CarInfo[idx][cTrunkAmmo10] = dini_Int(file,"Ammo10"); CarInfo[idx][cTrunkGun11] = dini_Int(file,"Gun11"); CarInfo[idx][cTrunkAmmo11] = dini_Int(file,"Ammo11"); } return 1; }