30.06.2015, 20:47
Somewhy GivePlayerMoney is called, but then seconds after all the money is being reset. I do not have any kind of anticheat or an include that would have one. The funny thing is that I'm not even using ResetPlayerMoney in the whole script.
Although if I use a command to give player some money, the server doesn't take it away.
pawn Код:
MySQL::OnPlayerProfileLoad (playerid)
{
<...>pInfo [playerid][pMoney] = cache_get_field_content_int (0, "Money");
SendFormattedClientMessage (playerid, col_WHITE, "before %d", pInfo [playerid][pMoney]);
GivePlayerMoney (playerid, pInfo [playerid][pMoney]);
SendFormattedClientMessage (playerid, col_WHITE, "after %d", pInfo [playerid][pMoney]);
<...>