[Ajuda] Server Reiniciando
#6

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Sim kkkkk
Retirei aki caso Reiniciar eu aviso.
Quote:
Originally Posted by paulor
Посмотреть сообщение
O mбximo que consigo te ajudar й dizer a Variбvel que estб causando isso, que й a Var gLastCar, O valor dela estб maior que as cйlulas de algumas Vars, causando o Crash..
Bem aki tudo do gm onde se encontra a gLastCar:
pawn Код:
new gLastCar[301];
//OnPlayerConnect
gLastCar[playerid] = 0;
//OnPlayerDisconnect
if (gLastCar[playerid] > 0)
{
    gLastDriver[gLastCar[playerid]] = 300;
    if(PlayerInfo[playerid][pPHousekey] != gLastCar[playerid]-1)
    {
        VTrancado[gLastCar[playerid]] = 0;
        UnLockCar(gLastCar[playerid]);
    }
}
//OnPlayerStateChange
new oldcar = gLastCar[playerid];
gLastCar[playerid] = newcar;
//CMD /trancar
if(gLastCar[playerid] == 0 && PlayerInfo[playerid][pPHousekey] == 255)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo tem um carro de casa/alugado.");
    return true;
}
else if(gLastCar[playerid] != 0 && gLastCar[playerid] != PlayerInfo[playerid][pPHousekey]+totalveiculos)
{
    if (HireCar[playerid] != gLastCar[playerid] && HireCar[playerid] > 0)
    {
        gLastDriver[HireCar[playerid]] = 300;
        VTrancado[HireCar[playerid]] = 0;
        UnLockCar(HireCar[playerid]);
    }
    HireCar[playerid] = gLastCar[playerid];
}
//CMD /carroantigo
format(string, sizeof(string), "ID do ъltimo carro: %d",gLastCar[playerid]);
Sгo esses ai..
Reply


Messages In This Thread
Server Reiniciando - by _LorD_ - 12.12.2012, 18:28
Re: Server Reiniciando - by mau.tito - 12.12.2012, 20:13
Re: Server Reiniciando - by _LorD_ - 12.12.2012, 20:16
Re: Server Reiniciando - by Schocc - 12.12.2012, 20:21
Re: Server Reiniciando - by paulor - 12.12.2012, 20:22
Re: Server Reiniciando - by _LorD_ - 12.12.2012, 21:25
Re: Server Reiniciando - by paulor - 12.12.2012, 22:21
Re: Server Reiniciando - by _LorD_ - 12.12.2012, 22:32
Re: Server Reiniciando - by _LorD_ - 13.12.2012, 19:33
Re: Server Reiniciando - by paulor - 13.12.2012, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)