server lagg
#7

Wow, 2 infinite loops in OnPlayerUpdate!
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);
        }
    }
You were doing a loop but still using playerid.
Reply


Messages In This Thread
server lagg - by Unknown123 - 28.09.2011, 16:43
Re: server lagg - by [MWR]Blood - 28.09.2011, 16:46
Re: server lagg - by Unknown123 - 28.09.2011, 16:47
Re: server lagg - by Kingunit - 28.09.2011, 16:49
Re: server lagg - by iggy1 - 28.09.2011, 17:00
Re: server lagg - by Unknown123 - 28.09.2011, 17:26
Re: server lagg - by [MWR]Blood - 28.09.2011, 17:29
Re: server lagg - by Vince - 28.09.2011, 17:50
Re: server lagg - by Unknown123 - 28.09.2011, 17:56
Re: server lagg - by [MWR]Blood - 28.09.2011, 18:05

Forum Jump:


Users browsing this thread: 3 Guest(s)