10.06.2016, 07:30
Yes, it saves it into a file.
But you still need to use GivePlayerMoney.
You should also set the player's money variable/enum thingy to 1000 when the player registers.
And then under OnPlayerSpawn:
And whenever you want to give the player money, you have to also update PlayerInfo[playerid][pCash].
Also, udh_hash (adler32) is very bad in terms of security.
You should use SHA256, or a plugin like Whirlpool.
But you still need to use GivePlayerMoney.
You should also set the player's money variable/enum thingy to 1000 when the player registers.
And then under OnPlayerSpawn:
Код:
ResetPlayerMoney(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
Also, udh_hash (adler32) is very bad in terms of security.
You should use SHA256, or a plugin like Whirlpool.