[Ajuda] Problema com OnStateChange
#2

pawn Код:
if(arrayPlayer[playerid][Pinderby] == 1)
{// ... ^ checando se estб no derby.
    if(newstate == PLAYER_STATE_ONFOOT || newstate == PLAYER_STATE_WASTED || newstate == PLAYER_STATE_EXIT_VEHICLE || newstate == PLAYER_STATE_SPAWNED)
    {// ... ^ checando estado.
        new vehicleid = GetPlayerVehicleID(playerid);
        for(new z = 0; z < MAX_PLAYERS; ++z)
        {// ... /\ nгo entendi \/ ... (Nгo seria MAX_VEHICLES?)
            if(vehicleid == derbycar[z])
            {
                new string[128];
                format(string, sizeof(string), "'%s'(%d) foi desclassificado do Derby .", pNome(z),z);// Deve ser playerid!
                SendClientMessageToAll(0xe045ffff,string);
                arrayPlayer[z][Pinderby] = 0;// Deve ser playerid!
                randomSpawn(z);// Deve ser playerid!
                RemovePlayerFromDerby(z);// Deve ser playerid!
            }
        }
    }
}
Reply


Messages In This Thread
[Ajuda] Problema com OnStateChange - by cotonete - 10.10.2011, 23:05
Re: [Ajuda] Problema com OnStateChange - by Shelby - 10.10.2011, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)