Raised This Month: $ Target: $400
 0% 

Weird behavior of '?' operator..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-20-2013 , 04:57   Re: Weird behavior of '?' operator..
Reply With Quote #1

Probably a bug compiler but usually you don't use "?" to set variables.

You can either use {} above, or enforcing line end with ";" or making check in a more conventional way "if ... else ...".
__________________

Last edited by Arkshine; 08-20-2013 at 04:58.
Arkshine is offline
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 08-20-2013 , 05:05   Re: Weird behavior of '?' operator..
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
but usually you don't use "?" to set variables.
Yes i know i have not seen in plugins , Thats why i was just testing..

So whats better in setting variables? if ... else... or '?' ?

Thanks
__________________
Preparing to release my plugins..
r0ck 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