Weird money problem.
#1

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.

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]);

        <...>
Although if I use a command to give player some money, the server doesn't take it away.
Reply


Messages In This Thread
Weird money problem. - by b3nz - 30.06.2015, 20:47
Re: Weird money problem. - by kloning1 - 30.06.2015, 23:22
Re: Weird money problem. - by Dizzle - 01.07.2015, 06:44
Re: Weird money problem. - by Sithis - 01.07.2015, 07:04
Re: Weird money problem. - by b3nz - 01.07.2015, 22:42
Re: Weird money problem. - by Suicidal.Banana - 01.07.2015, 23:46
Re: Weird money problem. - by Abagail - 01.07.2015, 23:52
Re: Weird money problem. - by Suicidal.Banana - 01.07.2015, 23:55
Re: Weird money problem. - by b3nz - 02.07.2015, 09:47
Re: Weird money problem. - by Suicidal.Banana - 02.07.2015, 10:35

Forum Jump:


Users browsing this thread: 1 Guest(s)