Side money problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Side money problem (
/showthread.php?tid=432479)
Side money problem -
nor15 - 22.04.2013
I use coins coz not to be easy to use Money Hack , so for example
PHP код:
dcmd_cash(playerid,params[])
{
#pragma unused params
Coins[playerid] +=200000;
return 1;
}
The coins don't increase dunno why
Re: Side money problem -
MattyG - 22.04.2013
Could you show the place where you declare Coins[] and the place where you check how many coins you have, please?
Re: Side money problem -
BittleRyan - 22.04.2013
Quote:
Originally Posted by nor15
I use coins coz not to be easy to use Money Hack , so for example
PHP код:
dcmd_cash(playerid,params[])
{
#pragma unused params
Coins[playerid] +=200000;
return 1;
}
The coins don't increase dunno why
|
That is because you are not increasing the money client side.
pawn Код:
dcmd_cash(playerid,params[])
{
#pragma unused params
Coins[playerid] +=200000;
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, Coins[playerid]);
return 1;
}
Re: Side money problem -
bensmart469 - 22.04.2013
PHP код:
//under OnPlayerUpdate
if(Coins[playerid] != GetPlayerMoney(playerid))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, Coins[playerid]);
}
EDIT: didnt see the post above, my bad xD
Re: Side money problem -
nor15 - 22.04.2013
i don't want the money that on the top right appear , i wanna them increase in the saving files
Re: Side money problem -
MattyG - 22.04.2013
Could you show the place where you declare Coins[] and the place where you check how many coins you have, then please?
Re: Side money problem -
BittleRyan - 22.04.2013
What file saving system are you using? If Mysql, what version?
Re: Side money problem -
Glad2BeHere - 22.04.2013
https://sampforum.blast.hk/showthread.php?tid=71136
ur "Coins[MAX_PLAYERS];" is "Cash[MAX_PLAYERS];" in this case so watch n learn n understand how to make anti hackable money
Re: Side money problem -
nor15 - 22.04.2013
Quote:
Originally Posted by BittleRyan
What file saving system are you using? If Mysql, what version?
|
I use dudb