AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I need a Tuto of True and False (https://forums.alliedmods.net/showthread.php?t=75560)

AntiBots 08-07-2008 21:21

I need a Tuto of True and False
 
Someone can do a tutorial to use well True and False?

Sorry is i post wrong, Admin move is this is wrong :D

Emp` 08-07-2008 21:56

Re: I need a Tuto of True and False
 
true == 1
false == 0

basically works just like other variables, when declaring new variables you must precede the variable name with bool:

you can only set booleans to true or false.

AntiBots 08-07-2008 22:08

Re: I need a Tuto of True and False
 
I need this to disable a public with a task or when i enable another public :D

Thank, if you have a example, post :D

SchlumPF* 08-07-2008 22:12

Re: I need a Tuto of True and False
 
this amy help you too

if( variable != 0 )
//statement will return true
else
//statement will return false

AntiBots 08-08-2008 04:31

Re: I need a Tuto of True and False
 
Quote:

Originally Posted by SchlumPF* (Post 666227)
this amy help you too

if( variable != 0 )
//statement will return true
else
//statement will return false

Thank, Now I understand all :D Now I give the plugin to fix it

danielkza 08-08-2008 12:42

Re: I need a Tuto of True and False
 
In boolean logic, false means 0,and true means everything else. Can't be any simpler.


All times are GMT -4. The time now is 05:38.

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