error: undefined "Money"
#1

Код:
\IGRP\gamemodes\IG.pwn(5393) : error 017: undefined symbol "Money"
do i need a stock fuction or something for this error
Reply
#2

Show the command/function it's used under?
Reply
#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
#4

add Money in your player enum example

pawn Код:
enum pInfo
{
Money
}
Reply
#5

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
add Money in your player enum example

pawn Код:
enum pInfo
{
Money
}
nope that wont work.
Reply
#6

add me on skype shehrozassad i will see it
Reply
#7

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
add me on skype shehrozassad i will see it
Sorry but i dont trust anyone touching the script. not being rude or anything hope you understand.


EDIT: i will fix it myself.
Reply
#8

No thats so easy I got to myself also that problem while adding it to my script , Change that to : From [pMoney] Too : [pCash]
Reply
#9

Quote:
Originally Posted by ProjectFutureRolePlay
Посмотреть сообщение
No thats so easy I got to myself also that problem while adding it to my script , Change that to : From [pMoney] Too : [pCash]
Already fixed it. i think its time for your guys to find a new thread who needs help thanks guys.
Reply
#10

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
add me on skype shehrozassad i will see it
Do NOT post "I need help, heres my skype" threads. Period.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)