Chance!
#3

I got an error..

PHP код:
CMD:breakcuff(playeridparams[])
{
     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] == && Civilian(GetPlayerSkin(playerid)))
     {
            
KillTimer(BeginArrestedTime[playerid]);
            
SendClientMessage(playerid, -1"{FF7000}YOU HAVE BEEN ESCAPED FROM ARRESTED!!! RUN RUN !!!!");
            
SetPlayerWantedLevel(playerid3);
            
SetPlayerColor(playeridYELLOW);
            
GameTextForPlayer(playerid"~Y~ESCAPED FROM ~G~ARRESTED ~P~ RUN BABY!!!"70005);
            
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"
Reply


Messages In This Thread
Chance! - by Thanks - 08.05.2018, 12:20
Re: Chance! - by Maxandmov - 08.05.2018, 12:26
Re: Chance! - by Thanks - 08.05.2018, 12:59
Re: Chance! - by TadePoleMG - 08.05.2018, 13:06
Re: Chance! - by CrystalGamer - 08.05.2018, 15:31
Re: Chance! - by kovac - 08.05.2018, 15:36
Re: Chance! - by CrystalGamer - 08.05.2018, 15:46
Re: Chance! - by kovac - 08.05.2018, 16:12
Re: Chance! - by Logic_ - 08.05.2018, 17:48
Re: Chance! - by Thanks - 08.05.2018, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)