Variables
#3

I cant use giveplayermoneyex on its own like that,my anticheat wont enable me to. I already have a public function and a forward for it. But like i say the code is setting the money to that and not simply taking it from the players current money.

I already have this under forwards:
forward vx_GivePlayerMoney(playerid, money);

This under publics:
public vx_GivePlayerMoney(playerid, money)
{
Player[playerid][Money] = money;
return 1;
}

And in the filterscript i change the standard giveplayermoney to:
CallRemoteFunction("vx_GivePlayerMoney", "dd", playerid, -80);

But instead of taking $80 it is actually setting the players money to $80.
Reply


Messages In This Thread
Variables - by sherlock - 02.10.2011, 20:08
Re: Variables - by Jefff - 02.10.2011, 20:12
Re: Variables - by sherlock - 02.10.2011, 20:15
Re: Variables - by AeroBlast - 02.10.2011, 20:20
Re: Variables - by sherlock - 02.10.2011, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)