Taxi script not working
#3

I did this, could someone correct my code, it doesn't seem to work :/

PHP код:
public OnPlayerClickMap(playeridFloat:fXFloat:fYFloat:fZ)
{
     for(new 
0MAX_PLAYERSi++)
    {
        if(
taxi[i]==&& GetPlayerState(playerid) == PLAYER_STATE_PASSENGER && != playerid)
        {
            
SetPlayerMapIcon(i0fXfYfZ00xFF0000FFMAPICON_GLOBAL);
            
taxiarea CreateDynamicSphere(fXfYfZ1000i);
            
Streamer_Update(i);
        }
    }
    return 
1;
}
public 
OnPlayerEnterDynamicArea(playeridareaid)
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
areaid == taxiarea && taxi[playerid]==&& GetPlayerState(i) == PLAYER_STATE_PASSENGER)
        {
            
RemovePlayerMapIcon(playerid0);
            
SendClientMessage(i, -1"you have arrived");
            
GameTextForPlayer(playerid"you have arrived"10000);
            
TextDrawShowForPlayer(playeridtextdraw_payout);
            
TextDrawShowForPlayer(playeridtextdraw_taxipayout);
            
GivePlayerMoney(playerid3000);
            
GivePlayerMoney(i, -100);
        }
    }
    return 
1;

//EDIT added Streamer_Update(i); nothing happened
Reply


Messages In This Thread
Taxi script not working - by Adamoneoone - 04.07.2018, 16:45
Re: Taxi script not working - by Calisthenics - 04.07.2018, 17:11
Re: Taxi script not working - by Adamoneoone - 04.07.2018, 17:59
Re: Taxi script not working - by JasonRiggs - 04.07.2018, 18:12
Re: Taxi script not working - by Adamoneoone - 04.07.2018, 18:12

Forum Jump:


Users browsing this thread: 2 Guest(s)