09.05.2014, 08:47
Hi,
I have created a custom GivePlayerMoney to avoid money hackers and such, I'm using Y_INI to load/save my player's profiles. Here's the problem:
Whenever I go in game and set my money, the money is set in the player's file, but the GTA:SA hud is still showing 0. It is fixed when I relog though.
Anything I could do to make it appear on the hud without relogging?
I have created a custom GivePlayerMoney to avoid money hackers and such, I'm using Y_INI to load/save my player's profiles. Here's the problem:
Whenever I go in game and set my money, the money is set in the player's file, but the GTA:SA hud is still showing 0. It is fixed when I relog though.
pawn Код:
stock SetRPGMoney(playerid, amount)
{
pInfo[playerid][Money] = amount;
return 1;
}