[Ajuda] Errors no Gm ....
#5

Organiza seu cуdigo um pouquinho mais

pawn Код:
stock AdvanceSpectate(playerid)
{
    if(ConnectedPlayers == 2) { StopSpectate(playerid); return 1; }
    if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && Player[playerid][gSpectateID] != INVALID_PLAYER_ID) {
            for(new x=Player[playerid][gSpectateID]+1; x<=MAX_PLAYERS; x++) {
                if(x == MAX_PLAYERS) { x = 0; }
                if(IsPlayerConnected(x) && x != playerid) {
                                if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && Player[x][gSpectateID] != INVALID_PLAYER_ID ||
                                        (GetPlayerState(x) != 1 && GetPlayerState(x) != 2 && GetPlayerState(x) != 3)) continue;
                                        else
                                        StartSpectate(playerid, x); break;
                                }
                        }
                }
    return 1;

}
....
Reply


Messages In This Thread
Errors no Gm .... - by shittt - 02.07.2013, 11:40
Re: Errors no Gm .... - by ProKillerpa - 02.07.2013, 15:23
Re: Errors no Gm .... - by shittt - 02.07.2013, 20:08
Re: Errors no Gm .... - by PT - 02.07.2013, 22:39
Re: Errors no Gm .... - by ProKillerpa - 02.07.2013, 23:13

Forum Jump:


Users browsing this thread: 1 Guest(s)