CMD problem?
#5

pawn Код:
if(PlayerInfo[playerid][pFaction] == SASD || PlayerInfo[playerid][pFaction] == LSPD || PlayerInfo[playerid][pFaction] == DHS) { SendClientMessage(playerid, COLOR_WHITE, "Law faction cannot rob the bank!"); return 1; }//****
            {
                if(success == 1)
                {
                    SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Los Santos Bank, please remain in the checkpoint for 95 Seconds!");
                    RobbingTime[playerid] = 95;
                    RobBankTimer = SetTimerEx("RobBank",1000,true,"i",playerid);
                    WantedPoints[playerid] = 5;
                    SetPlayerCriminal(playerid,255, "Robbing the Bank");
                    PlayerInfo[playerid][pRobTime] = 900;
                    BankRobbedRecently = 1;
                    SetTimer("UnsetBankRob",1500000,false);
                    OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                }
                else
                {
                    SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the Bank!");
                    WantedPoints[playerid] = 2;
                    SetPlayerCriminal(playerid,255, "Attempting to rob the Bank");
                    PlayerInfo[playerid][pRobTime] = 500;
                }
            }
            else // *THis
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
****You closed / returned if statement already At Up
*THIS:- > and i Guess u added this else at wrong place

so replace this
Код:
}
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
by
pawn Код:
}

        }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
Reply


Messages In This Thread
CMD problem? - by N0FeaR - 15.05.2012, 16:36
Re: CMD problem? - by Niko_boy - 15.05.2012, 16:37
Re: CMD problem? - by HaZaRaS™ - 15.05.2012, 16:40
Re: CMD problem? - by N0FeaR - 15.05.2012, 16:44
Re: CMD problem? - by Niko_boy - 15.05.2012, 16:52
Re: CMD problem? - by HaZaRaS™ - 15.05.2012, 16:58

Forum Jump:


Users browsing this thread: 4 Guest(s)