Money Hud
#1

Hello there, I've got a proplem.. The money hud is not showing the money I have..

Check my stats.. i got 10k. but i got 0 in my hud and when i use textdraw it works good but with paynspray/sprunk machines.. So i need a help please. Its for all the server..!

Reply
#2

The money hud is not showing the money because you don't have the money
Reply
#3

Quote:
Originally Posted by RedFusion
Посмотреть сообщение
The money hood is not showing the money because you don't have the money
Did you check the stats?
Reply
#4

The stats are wrong, not the hud
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)