Booleans
#2

A boolean is actually quite useless in Pawn, because it occupies the same space as a regular integer while only allowing for two values to be set. You set and get its value in just the same way as regular variables.
pawn Код:
new bool:myBool = true;
if(myBool == true) { /* do stuff */ }
Reply


Messages In This Thread
Booleans - by 2KY - 18.01.2012, 20:52
Re: Booleans - by Vince - 18.01.2012, 20:56
Re: Booleans - by spedico - 18.01.2012, 20:57
Re: Booleans - by Slice - 18.01.2012, 20:58
Re: Booleans - by Baboon - 18.01.2012, 20:58
Re: Booleans - by 2KY - 18.01.2012, 21:00
Re: Booleans - by Slice - 18.01.2012, 21:04
Re: Booleans - by Vince - 18.01.2012, 21:15
Re: Booleans - by 2KY - 18.01.2012, 21:18
Re: Booleans - by Slice - 19.01.2012, 05:05

Forum Jump:


Users browsing this thread: 1 Guest(s)