Side money problem
#1

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
Reply
#2

Could you show the place where you declare Coins[] and the place where you check how many coins you have, please?
Reply
#3

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;
}
Reply
#4

PHP код:
//under OnPlayerUpdate
     
if(Coins[playerid] != GetPlayerMoney(playerid))
     {
    
ResetPlayerMoney(playerid);
    
GivePlayerMoney(playeridCoins[playerid]);
     } 
EDIT: didnt see the post above, my bad xD
Reply
#5

i don't want the money that on the top right appear , i wanna them increase in the saving files
Reply
#6

Could you show the place where you declare Coins[] and the place where you check how many coins you have, then please?
Reply
#7

What file saving system are you using? If Mysql, what version?
Reply
#8

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
Reply
#9

Quote:
Originally Posted by BittleRyan
Посмотреть сообщение
What file saving system are you using? If Mysql, what version?
I use dudb
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)