09.03.2014, 18:45
the command wasnt working correctly my
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
compiles fine, but doesnt function correctly, is there abetterway of doing this?? that i dont know ?
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;
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;
}

