Raised This Month: $ Target: $400
 0% 

Weird behavior of '?' operator..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 08-20-2013 , 07:58   Re: Weird behavior of '?' operator..
Reply With Quote #1

The Conditional Operator (?:) is generally used to return variables into left operand.

gi_PlayerMoney[player] = (gi_PlayerMoney[player] < 3000)? 0 : (gi_PlayerMoney[player]-3000);
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 08-20-2013 at 07:59.
Shooting King is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode