[Tutorial] Use bool variables: It's easy.
#7

It's not like C/++ where the booleans are smaller than regular 32 bits integer ?

Okay, but for the second point i don't agree.
It just allows you a better variable managing than using integers. Particularly (and that's the only point of booleans) if you know that your variable will not contain something else than false or true (0 or 1).
It's very useful for example in player stats for RP(G) server ("hasMask", "hasPhone", etc).
Reply


Messages In This Thread
Use bool variables: It's easy. - by Baltimore - 11.07.2014, 16:31
Re : Use bool variables: It's easy. - by S4t3K - 11.07.2014, 16:41
Re: Use bool variables: It's easy. - by Baltimore - 11.07.2014, 16:46
Re: Use bool variables: It's easy. - by sammp - 11.07.2014, 20:32
Re : Use bool variables: It's easy. - by S4t3K - 12.07.2014, 19:17
Re: Use bool variables: It's easy. - by Vince - 12.07.2014, 19:30
Re : Use bool variables: It's easy. - by S4t3K - 12.07.2014, 19:52
Re: Use bool variables: It's easy. - by Vince - 12.07.2014, 20:07
Re: Use bool variables: It's easy. - by PT - 13.07.2014, 00:26
Re: Use bool variables: It's easy. - by Juvanii - 13.07.2014, 06:06

Forum Jump:


Users browsing this thread: 2 Guest(s)