Tag mismatch on rob system
#4

the command wasnt working correctly my
pawn Код:
new biz = in_biz[playerid];
    new loot =(BizInfo[biz][bBank] * 0.75);  //THIS LINE IS GETTING THE TAG MISMATCH ERROR
    GivePlayerMoney(playerid, loot);
    BizInfo[biz][bBank] -= loot;
was actually pullign from players bank and giving it to business so it to pull from biz bank now its not giving it to player and i get a server:command unknown ingame even though animation is done the clientmessage is not sent this is now hwo it stands
pawn Код:
COMMAND:rob(playerid, bizid, params[])
{
    if(GetPlayerWeapon(playerid) > 22)
    {
        if(IsInStore(playerid))
        {
            RobStore(playerid, bizid);
            SendClientMessage(playerid,COLOR_RED,"You have started robbing this store.");
            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;
    }
}

public RobStore(playerid,bizid)
{
    SetTimerEx("Rob",10000,false,"i",playerid);
    ApplyAnimation(playerid,"PED","gang_gunstand",4.0,0,1,1,0,10000,1);
    new biz = bizid;
    new Float:loot = BizInfo[biz][bBank] * 0.75;
    BizInfo[biz][bBank] -= Float:loot;
    GivePlayerMoney(playerid, float:loot);
    return 1;
}
compiles fine, but doesnt function correctly, is there abetterway of doing this?? that i dont know ?
Reply


Messages In This Thread
Tag mismatch on rob system - by daminOwens - 09.03.2014, 17:17
Re: Tag mismatch on rob system - by ]Rafaellos[ - 09.03.2014, 17:20
Re: Tag mismatch on rob system - by daminOwens - 09.03.2014, 17:28
Re: Tag mismatch on rob system - by daminOwens - 09.03.2014, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)