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.
__________________