Errors?
#1

Hey guys i got some errors please help me with fix it.
Код:
C:\Users\Mustafa\Desktop\anything\SAmp SRV\ForYou\gamemodes\SFCRRPG.pwn(15610) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\anything\SAmp SRV\ForYou\gamemodes\SFCRRPG.pwn(15711) : error 030: compound statement not closed at the end of file (started at line 15620)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
NEW this is my error place
pawn Код:
public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
    if(checkpointid == 1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
        }
        ShowPlayerDialog(playerid,DIALOG_OTTO,DIALOG_STYLE_LIST,"{FF0000}Otto's Car Menu","{FFFFFF}Infernus ($120000)\nTurismo ($120000)\nHotring Racer ($200000)\nSuper GT ($150000)\nSultan ($50000)\nStretch ($80000)\nElegy ($60000)\nElegant ($40000)\nBullet ($100000)\nBuffalo ($50000)\nJester ($90000)\nClub ($40000)\nNRG-500 ($250000)\n{FF0000}Attempt Robbery","Ok","Cancel");
        return 1;
       
    if(checkpointid == 2)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
    }
   
    if(checkpointid == 3)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
    }
    if(checkpointid == 4)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
    }
    if(checkpointid == 5)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
         }
         SetPlayerPos(playerid,237.66,141.35,1003.05);
         SetPlayerInterior(playerid, 3);
         return 1;
   }
   if(checkpointid == 6)
   {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
       }
       ShowPlayerDialog(playerid,DIALOG_HOSPITAL,DIALOG_STYLE_LIST,"Hospital Menu","{FFFFFF}Heal ($5000)\nCure ($5000)\nHeal and Cure ($10000)\n{FF0000}Attempt Robbery","Ok","Cancel");
       return 1;
   }
   if(checkpointid == 7)
   {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You must be in the Checkpoint at the SFPD garage to drop off suspects.");
            return 1;
   }
   if(checkpointid == 8)
   {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
        }
        SetPlayerPos(playerid,-25.69,-55.81,1003.05);
        SetPlayerInterior(playerid, 6);
        return 1;
   }
   if(checkpointid == 9)
   {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
        }
        if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_SWAT || gTeam[playerid] == TEAM_MEDIC)
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}Dude, i do not sell anything here, why you at my back door?");
            return 1;
        }
        ShowPlayerDialog(playerid,DIALOG_DRUGHOUSE,DIALOG_STYLE_LIST,"{FF0000}Drug House Menu","Weed - 100g ($20000)\nWeed - 500g($80000)\nWeed - 1000g ($150000)\nWeed - 5000g ($500000)\nHeroin - 5 Injections ($10000)\nHeroin - 20 Injections ($30000)\nHeroin - 50 Injections ($80000)\nHeroin - 200 Injections ($250000)\n{FF0000}Attempt Robbery","Ok","Cancel");
        return 1;
   }
   if(checkpointid == 10)
   {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You must be in the Checkpoint at the SFPD garage to drop off suspects.");
            return 1;
   }
   if(checkpointid == 11)
   {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}{FFFFFF}[{1E90FF}SERVER{FFFFFF}]: {FFFFFF}You must exit your vehicle before entering a checkpoint.");
            return 1;
        }
        if(gTeam[playerid] < 9)
        {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}We do not sell anything here ..");
            return 1;
        }
        ShowPlayerDialog(playerid,DIALOG_BOMBSHOP,DIALOG_STYLE_LIST,"{FF0000}Bomb Shop Menu","{FFFFFF}C4 (1x - $5000)\nC4 (5x - $20000)\nC4 (20x - $80000)","Ok","Cancel");
        return 1;
      }
   if(checkpointid == 12)
   {
            SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You must be in the Checkpoint at the SFPD garage to drop off suspects.");
            return 1;
    }
    return 1;
 }
And this is line 15620
Код:
if(IsPlayerInAnyVehicle(playerid))
How to fix this guys i searched in ****** but i don't find.
Reply


Messages In This Thread
Errors? - by Mustafa6155 - 20.11.2012, 15:54
Re: Errors? - by Mustafa6155 - 20.11.2012, 16:35
Re: Errors? - by vernz - 20.11.2012, 16:49
Re: Errors? - by Mustafa6155 - 20.11.2012, 17:06
Re: Errors? - by vernz - 20.11.2012, 17:06
Re: Errors? - by Mustafa6155 - 20.11.2012, 17:18

Forum Jump:


Users browsing this thread: 3 Guest(s)