AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   variable (https://forums.alliedmods.net/showthread.php?t=187732)

KamiN 06-17-2012 06:08

variable
 
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]

hornet 06-17-2012 07:15

Re: variable
 
If by mark you mean to check the variable for a value of 0 then yes.

fysiks 06-17-2012 12:32

Re: variable
 
Quote:

Originally Posted by KamiN (Post 1730340)
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.


All times are GMT -4. The time now is 06:10.

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