15.05.2012, 16:52
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;
}
*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; } }
pawn Код:
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
return 1;
}