Whats wrong with my timer
#2

Try this.

pawn Код:
if(GetPlayerWeapon(playerid) > 22)
    {

        new biz = GetClosestBiz(playerid);
        if(biz == -1) { biz = in_biz[playerid]; }
        if(biz > -1)
        {

            if(BizInfo[biz][bBank] > 0)
            {
                if(IsInStore(playerid))
                {
                    new robtime;
                    robtime = randomEx(45000,90000);
                    SetTimerEx("RobStore",robtime,false,"i",playerid);
                    ApplyAnimation(playerid,"PED","gang_gunstand",4.0,0,1,1,0,robtime,1);
                    SendClientMessage(playerid,COLOR_RED,"You have started robbing this store.");
                   
                   
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid,COLOR_WHITE,"This business has no money.");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"You are not in a store.");
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "You do not have a weapon.");
        return 1;
    }
    return 1;
 }
}
You missed a closing bracet from GetPlayerWeapon I believe.
Reply


Messages In This Thread
Whats wrong with my timer - by daminOwens - 09.03.2014, 20:45
Re: Whats wrong with my timer - by Abagail - 09.03.2014, 20:49
Re: Whats wrong with my timer - by daminOwens - 09.03.2014, 20:51
Re: Whats wrong with my timer - by daminOwens - 09.03.2014, 20:54
Re: Whats wrong with my timer - by Pottus - 09.03.2014, 21:07
Re: Whats wrong with my timer - by park4bmx - 09.03.2014, 21:13

Forum Jump:


Users browsing this thread: 2 Guest(s)