Loading Money Messup by Norn's Anti Money Hack
#1

I don't know if it was Norn's Anti Money Hack.

Problem:

When i came to server it says

Cash: $999,999,999

However after spawn my money is reset back to $-1

it reset the cash and turns to $-1 I don't have idea why this is happening

pawn Code:
#define ResetMoneyBar ResetPlayerMoney
#define UpdateMoneyBar GivePlayerMoney

GivePlayerCash(playerid, money)
{
    pData[playerid][Cash] += money;
    ResetMoneyBar(playerid);
    UpdateMoneyBar(playerid,pData[playerid][Cash]);
    return pData[playerid][Cash];
}

SetPlayerCash(playerid, money)
{
    #pragma unused SetPlayerCash
    pData[playerid][Cash] = money;
    ResetMoneyBar(playerid);
    UpdateMoneyBar(playerid,pData[playerid][Cash]);
    return pData[playerid][Cash];
}

ResetPlayerCash(playerid)
{
    pData[playerid][Cash] = 0;
    ResetMoneyBar(playerid);
    UpdateMoneyBar(playerid,pData[playerid][Cash]);
    return pData[playerid][Cash];
}

GetPlayerCash(playerid)
{
    return pData[playerid][Cash];
}
enum pData Cash is use for my cash loading.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)