Money, HELP +REP
#1

Hey,

I have a problem whit my script.
If you register, you get 600$, now, i make a system that players can buy guns, i want to test it,
i bought a gun for 500$, but now, 600 - 500= 100 right? But the money don't update? It stay on 600$??
Can someone help me please?
+REP!!

Jordyvc
Reply
#2

pawn Код:
GivePlayerMoney(playerid,-500);
Reply
#3

pawn Код:
GivePlayerMoney(playerid,-500);
I believe? :S
Reply
#4

Yes, i have it, first my money is 100, 0.5 seconds later it is back 600?
Reply
#5

Код:
function MoneyUpdate(playerid)
{
	if(GetPlayerCash(playerid) < GetPlayerMoney(playerid))
	{
		foreach(Player, i)
		{
  			new const old_money = GetPlayerCash(playerid);
    		ResetPlayerCash(playerid), GivePlayerCash(playerid, old_money);
   		}
	}
 	return 1;
}
Reply
#6

Do you have any anti-hack filterscripts? Try disabling them.
Reply
#7

No, i don't think so
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)