SA-MP Forums Archive
Check player has enough money. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Check player has enough money. (/showthread.php?tid=82699)



Check player has enough money. - Abernethy - 20.06.2009

I know it's something to do with
pawn Код:
if (GetPlayerMoney(playerid) >= /*HERE?*/)
{
//effect
}
Does anybody the right way? I don't have time to test it right now.


Re: Check player has enough money. - Grim_ - 20.06.2009

pawn Код:
if(GetPlayerMoney(playerid) >= AMOUNT)
{
  //Code here
}
Yeah, you were correct.


Re: Check player has enough money. - Abernethy - 20.06.2009

Good, lucky it works.
Suprising for me, I just made a Weapons Shop (600 lines) with about 20-25 weapons. When I compiled it worked, & I found no bugs. Quite pleased with myself.


Re: Check player has enough money. - Grim_ - 20.06.2009

hehe I made the same exact thing about 5 months ago