Ternary operator...
#1

pawn Code:
PlayerData[playerid][E_PLAYER_MONEY] += (money > MAX_PLAYER_MONEY ? MAX_PLAYER_MONEY : money);
Any idea why it's not working? I do not want to exceed some value to the player variable E_PLAYER_MONEY.
Reply


Messages In This Thread
Ternary operator... - by Riddick94 - 08.02.2013, 15:31
Re: Ternary operator... - by Riddick94 - 09.02.2013, 15:09
Re: Ternary operator... - by Pooh7 - 09.02.2013, 15:10
Re: Ternary operator... - by LarzI - 09.02.2013, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)