Money Hud
#5

My guess is that you are saving the money to a variable, but forget using the original GivePlayerMoney function.

A lot of people do it like this (Prevents people from using money that have been spawned/created by cheats)
pawn Код:
forward _GivePlayerMoney(playerid, amount);
public _GivePlayerMoney(playerid, amount)
{
    Cash[playerid] += amount;
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, amount);
}

forward _GetPlayerMoney(playerid);
public _GetPlayerMoney(playerid);
{
    return Cash[playerid];
}
I believe you might've forgotten the GivePlayerMoney, if you are using a function like this at all. Just a guess though.
Reply


Messages In This Thread
Money Hud - by Kevin FOx - 25.06.2013, 22:54
Re: Money Hud - by RedFusion - 25.06.2013, 22:56
Re: Money Hud - by Kevin FOx - 25.06.2013, 23:10
Re: Money Hud - by RedFusion - 25.06.2013, 23:33
Re: Money Hud - by Knappen - 26.06.2013, 01:27

Forum Jump:


Users browsing this thread: 3 Guest(s)