Raised This Month: $ Target: $400
 0% 

I need a Tuto of True and False


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-07-2008 , 21:21   I need a Tuto of True and False
Reply With Quote #1

Someone can do a tutorial to use well True and False?

Sorry is i post wrong, Admin move is this is wrong
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-07-2008 , 21:56   Re: I need a Tuto of True and False
Reply With Quote #2

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.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-07-2008 , 22:08   Re: I need a Tuto of True and False
Reply With Quote #3

I need this to disable a public with a task or when i enable another public

Thank, if you have a example, post
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 08-07-2008 , 22:12   Re: I need a Tuto of True and False
Reply With Quote #4

this amy help you too

if( variable != 0 )
//statement will return true
else
//statement will return false
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-08-2008 , 04:31   Re: I need a Tuto of True and False
Reply With Quote #5

Quote:
Originally Posted by SchlumPF* View Post
this amy help you too

if( variable != 0 )
//statement will return true
else
//statement will return false
Thank, Now I understand all Now I give the plugin to fix it
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 08-08-2008 , 12:42   Re: I need a Tuto of True and False
Reply With Quote #6

In boolean logic, false means 0,and true means everything else. Can't be any simpler.
danielkza 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 05:38.


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