10.07.2011, 07:36
Great tutorial! Well explained, reputation ++;
But, did I found a mistake?
You didn't use SetPlayerScore to set the player's score back, lol
Just an example, before we logged in, we hacked the money to $9999999, then we log in, we got another money too ...
So I think it would be
But, did I found a mistake?
pawn Code:
PlayerInfo[playerid][pScore] = INI_ReadInt("Score")
pawn Code:
GivePlayerMoney(playerid, INI_ReadInt("Cash"));
So I think it would be
pawn Code:
GivePlayerMoney( playerid, - GetPlayerMoney( playerid ) + INI_ReadInt( "Cash" ) );
// Or
ResetPlayerMoney( playerid );
GivePlayerMoney( playerid, INI_ReadInt( "Cash" ) );