[AJUDA] OnPlayerEnterVehicle causando lag
#1

Pessoal to com um problema no OnPlayerEnterVehicle , quando eu entro num aviгo dб um lag do caramba.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new strtring[256];
    new newcar = GetPlayerVehicleID(playerid);

    if(Avioes(newcar))
    {
        SetTimer("DarPontos", 10000, 1);
        //SetTimerEx("DarPontos", 10000, true, "i", playerid);
        TimerAtivado[playerid] = 1;
    }
    if(BaggageCar(newcar))
    {
        SendClientMessage(playerid, COLOR_GREEN, "Para consertar um Aviгo digite: /reparar [id]");
        SendClientMessage(playerid, COLOR_GREEN, "Para soltar o Trailer digite: /detach");
    }
   
    for(new i; i < MAX_PLAYERS; i++)
    {
        VelocidadeB = SetTimer("Barras", 150, 1);
        TimerG = SetTimer("GasolinA", 30000, 1);
    }
    TextDrawShowForPlayer(playerid, Text:VelocidadeText);
    ShowProgressBarForPlayer(playerid, Velocidade[playerid]);
    TextDrawShowForPlayer(playerid, Text:Gaso1);
    TextDrawShowForPlayer(playerid, Text:Gaso2);
    TextDrawShowForPlayer(playerid, Text:Altitude);
    TextDrawShowForPlayer(playerid, Text:Altitude2);

    return 1;
}
como resolver?
Reply


Messages In This Thread
[AJUDA] OnPlayerEnterVehicle causando lag - by GuikBretas - 14.07.2011, 00:27
Re: [AJUDA] OnPlayerEnterVehicle causando lag - by RockFire - 14.07.2011, 00:37
Re: [AJUDA] OnPlayerEnterVehicle causando lag - by Transferencia - 14.07.2011, 00:37
Re: [AJUDA] OnPlayerEnterVehicle causando lag - by RockFire - 14.07.2011, 00:39
Re: [AJUDA] OnPlayerEnterVehicle causando lag - by GuikBretas - 14.07.2011, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)