Check player has enough money.
#1

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.
Reply
#2

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

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.
Reply
#4

hehe I made the same exact thing about 5 months ago
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)