10.11.2011, 13:15
Well, I got a error.
These is my script:
Help me please.
These is my script:
pawn Код:
if(Vehicles[PlayerVehicle][Faction] != 0 && Vehicles[PlayerVehicle][Faction] != PlayerInfo[playerid][pMember])
{
if(Vehicles[PlayerVehicle][Faction] == 1) { ftext = "LSPD"; }
else if(Vehicles[PlayerVehicle][Faction] == 2) { ftext = "FBI"; }
else if(Vehicles[PlayerVehicle][Faction] == 3) { ftext = "RCSD"; }
else if(Vehicles[PlayerVehicle][Faction] == 4) { ftext = "LSFMD"; }
else if(Vehicles[PlayerVehicle][Faction] == 5) { ftext = "National Guards"; }
else if(Vehicles[PlayerVehicle][Faction] == 6) { ftext = "Senate"; }
else if(Vehicles[PlayerVehicle][Faction] == 7) { ftext = "Secret Service"; }
else if(Vehicles[PlayerVehicle][Faction] == 8) { ftext = "Hitman Agency"; }
else if(Vehicles[PlayerVehicle][Faction] == 9) { ftext = "News Agency"; }
else if(Vehicles[PlayerVehicle][Faction] == 10) { ftext = "Taxi Cab Company"; }
new string[128];
format( string, sizeof( string ), "This vehicle is only usable by {FF6347}%s{AFAFAF}!", ftext);
SendClientMessage( playerid, COLOR_GREY, string);
}
RemovePlayerFromVehicle(playerid);
}
return true;
}