Cash Money lost
#9

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
A simple solution to this is to always update your player's money on OnPlayerUpdate.

Код:
public OnPlayerUpdate(playerid)
{
        if (GetPlayerMoney(playerid) != PlayerInfo[playerid][Money])
	{
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);
	}
        return 1;
}
This way everytime the player does anything (or just stands still for that matter) their money gets updated if the displayed amount of cash is not the same as the server-sided money is.
It still shows the fake cash
Reply


Messages In This Thread
Cash Money lost - by DerickClark - 10.02.2017, 02:38
Re: Cash Money lost - by haikalbintang - 10.02.2017, 03:34
Re: Cash Money lost - by DerickClark - 10.02.2017, 03:36
Re: Cash Money lost - by DerickClark - 10.02.2017, 11:45
Re: Cash Money lost - by haikalbintang - 10.02.2017, 11:57
Re: Cash Money lost - by DerickClark - 10.02.2017, 12:07
Re: Cash Money lost - by DerickClark - 10.02.2017, 21:29
Re: Cash Money lost - by Hansrutger - 10.02.2017, 21:32
Re: Cash Money lost - by DerickClark - 10.02.2017, 21:34
Re: Cash Money lost - by Hansrutger - 10.02.2017, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)