28.09.2011, 17:29
Wow, 2 infinite loops in OnPlayerUpdate!
Well, that's the problem.
Do a timer of example 10-15 seconds.
And, this should be:
You were doing a loop but still using playerid.
Well, that's the problem.
Do a timer of example 10-15 seconds.
And, this should be:
pawn Код:
for(new i = 0; i < sizeof(SpikeData); i++)
{
if(IsVehicleCloseSpike(i, GetPlayerVehicleID(playerid), 3.2))
{
new panels, doors, lights, tires;
GetVehicleDamageStatus(GetPlayerVehicleID(i), panels, doors, lights, tires);
UpdateVehicleDamageStatus(GetPlayerVehicleID(i), panels, doors, lights, 15);
}
}