[Ajuda] OnPlayerEnterCheckpoint
#1

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    // [ LOJA DE ARMAS 1 ] :
    if(CPS_GetPlayerCheckpoint(playerid == CheckLojaArmas))
    {
        Ammunation(playerid);
        return 1;
    }
   
    // [ LOJA DE COMIDAS 1 ] :
    if(CPS_GetPlayerCheckpoint(playerid == CheckLojaComidas))
    {
        Comidas(playerid);
        return 1;
    }
    return 1;
}

O problema й que estб acontecendo bugs, exemplo:

Se eu entro no checkpont ' CheckLojaComidas ' ao inves de executar a funзгo ' Comidas(playerid); ' executa ' Ammunation(playerid); ' , acontece tipo.. randomicamente, as vezes й com o ' CheckLojaArmas ' e executa ' Comidas(playerid); '.
Reply


Messages In This Thread
OnPlayerEnterCheckpoint - by Lucas_HenryK - 16.02.2014, 13:48
Re: OnPlayerEnterCheckpoint - by PT - 16.02.2014, 17:58
Re: OnPlayerEnterCheckpoint - by Kmatsu - 16.02.2014, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)