I got this script from my friend on skype
when I tried to compile it i get this error,what should I do?
when I tried to compile it i get this error,what should I do?
Code:
xx\FR_RP1.5.pwn(4523) : error 017: undefined symbol "vmodelused"
xx\FR_RP1.5.pwn(4523) : warning 215: expression has no effect
xx\FR_RP1.5.pwn(4523) : error 001: expected token: ";", but found "]"
xx\FR_RP1.5.pwn(4523) : error 029: invalid expression, assumed zero
xx\FR_RP1.5.pwn(4523) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP Code:
new temps1 = pvehicle[playerid][0];
new temps2 = GetVehicleModel(temps1);
if (tvar2 == temps2) {
GetVehicleDamageStatus(pvehicle[playerid][0], panels, doors, lights, tires);
dini_IntSet(AddDirFile(dir_carfiles, string), "panels", panels);
dini_IntSet(AddDirFile(dir_carfiles, string), "doors", doors);
dini_IntSet(AddDirFile(dir_carfiles, string), "lights", lights);
dini_IntSet(AddDirFile(dir_carfiles, string), "tires", tires);
}
else {
vmodelused[temps2-400] --;
if (vmodelused[temps2-400] == 0) vehiclemodels --;
dini_IntSet(AddDirFile(dir_carfiles, string), "panels", 0);
dini_IntSet(AddDirFile(dir_carfiles, string), "doors", 0);
dini_IntSet(AddDirFile(dir_carfiles, string), "lights", 0);
dini_IntSet(AddDirFile(dir_carfiles, string), "tires", 0);
}