(90178) : error 030: compound statement not closed at the end of file (started at line 90165)
CMD:deletecallsign(playerid,params[])
{
if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2 || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)) {
new veh = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
Delete3DTextLabel(veicolo_callsign_testo[veh]);
veicolo_callsign_status[veh] = 0;
}
else
{
SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}You are not in a vehicle");
}
return 1;
}
CMD:deletecallsign(playerid,params[]) { if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2 || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)) { new veh = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { Delete3DTextLabel(veicolo_callsign_testo[veh]); veicolo_callsign_status[veh] = 0; } else { SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}You are not in a vehicle"); } return 1; }
Код:
CMD:deletecallsign(playerid,params[]) { if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2 || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)) { new veh = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { Delete3DTextLabel(veicolo_callsign_testo[veh]); veicolo_callsign_status[veh] = 0; } else { SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}You are not in a vehicle"); } return 1; } Remove the first one of em. |
CMD:deletecallsign(playerid,params[]) { if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2 || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)) { new veh = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { Delete3DTextLabel(veicolo_callsign_testo[veh]); veicolo_callsign_status[veh] = 0; } else { SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}You are not in a vehicle"); } } return 1; }