How to use "Boolean"
#4

Quote:
Originally Posted by PrivatioBoni
Посмотреть сообщение
Assigning to true or false is just "= true;" or "= false;"

Only use "==" when comparing.
Or you can do it like this aswell:

pawn Код:
new bool: variable;

// Variable is true:
if(variable)
{

}


// Variable is false:
else if(!variable)
{

}
Reply


Messages In This Thread
How to use "Boolean" - by mrkiller90 - 17.07.2014, 14:54
Re: How to use "Boolean" - by PrivatioBoni - 17.07.2014, 14:56
Re: How to use "Boolean" - by mrkiller90 - 17.07.2014, 14:59
Re: How to use "Boolean" - by Dignity - 17.07.2014, 14:59
Re: How to use "Boolean" - by PrivatioBoni - 17.07.2014, 15:00
Re: How to use "Boolean" - by mrkiller90 - 17.07.2014, 15:02
Re: How to use "Boolean" - by paulommu - 17.07.2014, 15:07
Re: How to use "Boolean" - by mrkiller90 - 17.07.2014, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)