Raised This Month: $ Target: $400
 0% 

some noob-questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-03-2012 , 17:09   Re: some noob-questions
Reply With Quote #1

Quote:
Originally Posted by rak View Post
PHP Code:
if (!killer || !victim// ! in front of id ? 

PHP Code:
if (killer <= || victim <= 0
That's wrong. ! means not. In this case, it means if not value, meaning if there is no value.
For there to be no value, it would have to have 0.

Here's an example:
Code:
new var1 = 200; new var2 = -10; new var3 = 0; if(var1) // true if(var2) // true if(var3) // false // !var1 = not 200 = 0 // !var2 = not -10 = 0 // !var3 = not 0 = 1 if(!var1) // false if(!var2) // false if(!var3) // true
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 05-03-2012 , 17:26   Re: some noob-questions
Reply With Quote #2

Quote:
Originally Posted by Exolent[jNr] View Post
That's wrong. ! means not. In this case, it means if not value, meaning if there is no value.
For there to be no value, it would have to have 0.
yes, my mistake; sorry xD i don't sleep u.u; i don't know what I think xD
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
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 00:25.


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