My code doesn't give cash to the owner, need help!
#7

Quote:
Originally Posted by Sc0pion
Посмотреть сообщение
I have anti-money hack already and after adding what you want me to, I receive a new error:

Код:
(781) : error 017: undefined symbol "PlayerInfo"
(781) : warning 215: expression has no effect
(781) : error 001: expected token: ";", but found "]"
(781) : error 029: invalid expression, assumed zero
(781) : fatal error 107: too many error messages on one line
And wont that code effect with this one?

Код:
GivePlayerMoney(playerid, -hInfo[houseid][Price]);
I mean first the owner receives the cash when a player buys his/her house and then the one who buys house looses the the cash.
I didn't write the code so you can literally throw it into your script and assume it would work. Edit it to your needs(pInfo?) and take a look through the code.

And no it won't, using GivePlayerMoney can be exploited by third-party hacks, since it's what the client uses to give a player money.

As for:
Код:
GivePlayerMoney(playerid, -hInfo[houseid][Price]);
You would do PlayerInfo[playerid][pCash] -= hInfo[houseid][Price]; and then GiveMoney(playerid);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)