06.06.2015, 11:24
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);
}
}