Taxi cars [help]
#6

PHP код:
if(newcar == taxic[6])  // Rank Masini Taxi 
        

            if(
PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13
            { 
                if(
PlayerInfo[playerid][pRank] > 6) { } 
                else 
                { 
                    
SendClientMessage(playerid,COLOR_WHITE,"{999999}You don't have rank 6."); 
                    
RemovePlayerFromVehicleEx(playerid); 
                } 
            } 
else if(
newcar == taxic[4]) 
            { 
                
//if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) 
                //{ 
                    
if(PlayerInfo[playerid][pRank] > 4) { } 
                    else 
                    { 
                    
SendClientMessage(playerid,COLOR_WHITE,"{999999}You don't have rank 4."); 
                    
RemovePlayerFromVehicleEx(playerid); 
                    } 
                
//} 
            
else //Here should be another condition and should be else if not else cuz in the If...Else staments can be only one else not more than
            

                
SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Los Santos Taxi member or you don't have rank 6."); 
                
RemovePlayerFromVehicleEx(playerid); 
            } 
            
            } 
            else 
            { 
                
SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Los Santos Taxi member or you don't have rank 4."); 
                
RemovePlayerFromVehicleEx(playerid); 
            } 
        } 
Reply


Messages In This Thread
Taxi cars [help] - by Sn4ke2 - 06.06.2015, 09:56
Re: Taxi cars [help] - by JaydenJason - 06.06.2015, 10:02
Re: Taxi cars [help] - by Sn4ke2 - 06.06.2015, 10:04
Re: Taxi cars [help] - by Vince - 06.06.2015, 10:12
Re: Taxi cars [help] - by Sn4ke2 - 06.06.2015, 10:17
Re: Taxi cars [help] - by nezo2001 - 06.06.2015, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)