[Ajuda] Uber
#1

Queria saber porque quando o jogador sai do veнculo com o ValordaTarifa maior do que 1, nгo acontece nada.

CУDIGO:

PHP код:
        if(oldstate == PLAYER_STATE_PASSENGER && ValorTarifa[playerid] > 0)
        {
            if(
PlayerAtendidoPeloUber[playerid] != INVALID_PLAYER_ID)
            {
                new 
atendendoid PlayerAtendidoPeloUber[playerid];
                
MensagemFormatada(atendendoid, -1"| UBER | Jogador(a) %s saiu do seu Uber, vocк recebe {80FF80}%s {FFFFFF}pela tarifa Dele."PlayerName(playerid), formatReal(ValorTarifa[playerid]));
                for(new 
t5t++) { PlayerTextDrawHide(playeridTextUber[playerid][t]); PlayerTextDrawHide(atendendoidTextUber[atendendoid][t]); }
                
                
sGivePlayerCash(atendendoidValorTarifa[playerid]);
                   
UberPlayer[atendendoid] = INVALID_PLAYER_ID;
                
PlayerAtendidoPeloUber[playerid] = INVALID_PLAYER_ID;
                
Tarifa[playerid] = 0;
                
ValorTarifa[playerid] = 0;
            }
        } 
Reply


Messages In This Thread
Uber - by GuiKommander - 19.01.2019, 11:43
Re: Uber - by GabrielCOP - 19.01.2019, 13:23
Re: Uber - by GuiKommander - 19.01.2019, 15:33
Re: Uber - by ipsLuan - 20.01.2019, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)