Raised This Month: $ Target: $400
 0% 

variable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KamiN
Senior Member
Join Date: Jun 2011
Old 06-17-2012 , 06:08   variable
Reply With Quote #1

Code:
new oneatround[33]

public blablabla(id)
{
     if(is_user_alive(id) && !oneatround[id])

}

If somewhere in the code oneatround[id] gets value 1 so is it correct to mark it's value 0 like that?
Code:
!oneatround[id]
KamiN is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-17-2012 , 07:15   Re: variable
Reply With Quote #2

If by mark you mean to check the variable for a value of 0 then yes.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2012 , 12:32   Re: variable
Reply With Quote #3

Quote:
Originally Posted by KamiN View Post
Code:
new oneatround[33]

public blablabla(id)
{
     if(is_user_alive(id) && !oneatround[id])

}

If somewhere in the code oneatround[id] gets value 1 so is it correct to mark it's value 0 like that?
Code:
!oneatround[id]
What do you mean by "mark" because hornet's interpretation is exactly opposite of what actually makes sense.
__________________
fysiks 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 06:10.


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