Need help with my /shop and /heal
#2

pawn Код:
if( GetPlayerMoney( playerid ) < amount )
{
// player hasnt got enough cash
}
else
{
// player has enough cash
}
or with ternary operator:

pawn Код:
GetPlayerMoney( playerid ) < amount ? /* player hasnt got enough cash */ : /* has enough cash*/;
Reply


Messages In This Thread
Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 19:40
Re: Need help with my /shop and /heal - by niels44 - 20.12.2013, 20:02
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 20:43
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 20:48
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 20:52
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 20:56
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 21:01
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 21:14
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)