10.10.2011, 23:05
alguem poderia me explicar oque ta errado nesse cуdigo?
ele tinha que verificar se o jogador esta no derby, se saiu do carro ou o carro explodiu executar as coisas abaixo @_@
Код:
if(oldstate == PLAYER_STATE_ONFOOT || newstate == PLAYER_STATE_ONFOOT )
{
if(arrayPlayer[playerid][Pinderby] == 1)
{
new vehicleid = GetPlayerVehicleID(playerid);
for(new z = 0; z < MAX_PLAYERS; ++z)
{
if(vehicleid == derbycar[z])
{
new string[128];
format(string, sizeof(string), "'%s'(%d) foi desclassificado do Derby .", pNome(z),z);
SendClientMessageToAll(0xe045ffff,string);
arrayPlayer[z][Pinderby] = 0;
randomSpawn(z);
RemovePlayerFromDerby(z);
}
}
}
}

