Hey habe ein olicht system gefunden und will es einfügen aber bekomme diesen error .
: error 017: undefined symbol "TruckAnhanerStatus"
: warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
Hier die zeilen
public OnVehicleDeath(vehicleid, killerid)
{
TruckAnhanerStatus[vehicleid] = 0;
SupMobilAbgeschlossen[vehicleid] = 0;
enginevar[vehicleid] = 0;
lightsvar[vehicleid] = 0;
sapdcoplock[vehicleid] = 0;
if(Olicht[vehicleid] == 1)
{
DestroyObject(light1[vehicleid]);
Olicht[vehicleid] = 0;
}
if(Lamp[vehicleid] == 1)
{
DestroyObject(light[vehicleid]);
Lamp[vehicleid] = 0;
}
for(new fc;fc<sizeof(FactionCars);fc++)
{
if(FactionCars[fc][fVehid] >= 400 && FactionCars[fc][fVehid] <= 611)
{
if(FactionCars[fc][fCarid] == vehicleid)
{
SetTimerEx("DestroyAndCreateFactionCar",3000,0,"d",fc);
break;
}
}
}
for(new fc;fc<sizeof(StateFactionCars);fc++)
{
if(StateFactionCars[fc][sfVehid] >= 400 && StateFactionCars[fc][sfVehid] <= 611)
{
if(StateFactionCars[fc][sfCarid] == vehicleid)
{
SetTimerEx("DestroyAndCreateStateFactionCar",3000,0,"d",fc);
break;
}
}
}
for(new fc;fc<sizeof(FactionStateBuylist);fc++)
{
if(FactionStateBuylist[fc][sfbVehid] >= 400 && FactionStateBuylist[fc][sfbVehid] <= 611)
{
if(FactionStateBuylist[fc][sfbCarid] == vehicleid)
{
SetTimerEx("DestroyAndCreateStateBuyListCar",3000,0,"d",fc);
break;
}
}
}
return 1;
}