error: undefined "Money"
#3

here you go mate.

EDIT: if you fix it please let me know what you did.
Код:
CMD:buybiz(playerid, params[])
{
    new id = IsPlayerNearBizEnt(playerid);
    if(id == -1 || id == 0) return SendClientMessage(playerid, COLOR_GREY, "You are not near a biz");
    if(BusinessInfo[id][bOwned] != 0 || BusinessInfo[id][bPrice] == 0) return SendClientMessage(playerid, COLOR_GREY, "This biz is not for sale.");
    if(PlayerInfo[playerid][BizID] != 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You already own a biz.");
    if(PlayerInfo[playerid][Money] < BusinessInfo[id][bPrice]) return SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, you can not afford this biz.");
    PlayerInfo[playerid][BizID] = id;
    PlayerInfo[playerid][Money] -= BusinessInfo[id][bPrice];
    GivePlayerMoney(playerid, -BusinessInfo[id][bPrice]);
    BusinessInfo[id][bLocked] = 0;
    BusinessInfo[id][bOwned] = 1;
    BusinessInfo[id][bOwner] = RemoveUnderScore(playerid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new biz! Use /bizhelp to get help, or /ask!");
    return 1;
}
Reply


Messages In This Thread
error: undefined "Money" - by OpticKiller - 23.06.2013, 05:54
Re: error: undefined "Money" - by DobbysGamertag - 23.06.2013, 05:59
Re: error: undefined "Money" - by OpticKiller - 23.06.2013, 06:05
Re: error: undefined "Money" - by IceBilizard - 23.06.2013, 06:26
Re: error: undefined "Money" - by OpticKiller - 23.06.2013, 06:33
Re: error: undefined "Money" - by IceBilizard - 23.06.2013, 06:42
Re: error: undefined "Money" - by OpticKiller - 23.06.2013, 06:55
Re: error: undefined "Money" - by ProjectFutureRolePlay - 23.06.2013, 06:57
Re: error: undefined "Money" - by OpticKiller - 23.06.2013, 07:01
Re: error: undefined "Money" - by xFirex - 23.06.2013, 09:04

Forum Jump:


Users browsing this thread: 1 Guest(s)