Error in callsign for PD
#1

the error message.
Код:
(90178) : error 030: compound statement not closed at the end of file (started at line 90165)
PHP код:
CMD:deletecallsign(playerid,params[])
{
    if(
IsACop(playerid) || (PlayerInfo[playerid][pFaction] == && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == && PlayerInfo[playerid][pDivision] == || (PlayerInfo[playerid][pFaction] == && 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;

Reply
#2

Код:
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; 
}
You are using double brackets, see the ones i marked red.
Remove the first one of em.
Reply
#3

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
Код:
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; 
}
You are using double brackets, see the ones i marked red.
Remove the first one of em.
Thank you, i just mess it xD; anyways i give a rep for a helpful person.
Reply
#4

I was actually wrong about this one, Don't remove one but make it like this:
Код:
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; 
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)