08.05.2018, 12:59
I got an error..
PHP код:
CMD:breakcuff(playerid, params[])
{
if(PoliceTeam(GetPlayerSkin(playerid))) return SendClientMessage(playerid, -1, "{ff0000}Error: {Ffffff}Only Civilian can use this comamnd.");
new chance = random(100)
if(chance <= 65)
{
SendClientMessage(playerid, -1, "rtr");
}
if(BeginArrested[playerid] == 1 && Civilian(GetPlayerSkin(playerid)))
{
KillTimer(BeginArrestedTime[playerid]);
SendClientMessage(playerid, -1, "{FF7000}YOU HAVE BEEN ESCAPED FROM ARRESTED!!! RUN RUN !!!!");
SetPlayerWantedLevel(playerid, 3);
SetPlayerColor(playerid, YELLOW);
GameTextForPlayer(playerid, "~Y~ESCAPED FROM ~G~ARRESTED ~P~ RUN BABY!!!", 7000, 5);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
BeginArrested[playerid] = 0;
}else{
SendClientMessage(playerid, -1, "{FF0000}Error: {FFFFFF}You can use this command only while be cuffed or arrested.");
}
return 1;
}
Код:
error 001: expected token: ";", but found "if"