Money, HELP +REP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Money, HELP +REP (
/showthread.php?tid=338842)
Money, HELP +REP -
jordyvc - 01.05.2012
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
Re: Money, HELP +REP -
newbienoob - 01.05.2012
pawn Код:
GivePlayerMoney(playerid,-500);
Re: Money, HELP +REP -
HighPitchedVoice - 01.05.2012
pawn Код:
GivePlayerMoney(playerid,-500);
I believe? :S
Re: Money, HELP +REP -
jordyvc - 01.05.2012
Yes, i have it, first my money is 100, 0.5 seconds later it is back 600?
Re: Money, HELP +REP -
jordyvc - 01.05.2012
Код:
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;
}
Re: Money, HELP +REP -
Dan. - 01.05.2012
Do you have any anti-hack filterscripts? Try disabling them.
Re: Money, HELP +REP -
jordyvc - 01.05.2012
No, i don't think so