Raised This Month: $ Target: $400
 0% 

Bool


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 02-20-2006 , 17:38   Bool
Reply With Quote #1

Argh, I've been coding for a while, and took a huge break.
The thing is, I never learned what bool is or how to use it.

I read a short 2 setence explaination on what they are, they hold an option of true or false.

Ok.

Now I have a few questions regarding boolean variables.


1) How do I get the state of the bool variable?

Example:
new bool:coords[3]

From my understanding, it is false my default. Now, how would I go about seeing what the state of it is anyhow, in an "IF()" statement?

This is what I've tried

Code:
if(bool:j1[2] == true) {

2) What is the variable to use in a client_print() function to echo the state of the bool?
Example: client_print(id,print_chat,"State: %s",bool:coords)

I need to know what symbol (%s, %i, etc).


Thanks.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 


Thread Tools
Display Modes

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 20:21.


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