[Tutorial] Booleans and what they can be used for (Checking states, etc)
#3

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
This awesome guy's ideas runs your PC, to be honest. There are 2 voltages - 5 Volts and 0 Volts and anyone with a bit of hardware knowledge must know that the computer runs on these voltages.
Actually, a computer mostly runs on a 12V rail. That 5 Volt shizzle is something they teach you in electronics class if you're working with electronic components (transistors, capacitors, logic gates and shit).

Other than that, the idea of the regular boolean is quite obsolete in SA-MP, since you are in fact wasting 31 perfectly good bits (time 500 if you use MAX_PLAYERS). That's why people have come up with bit shifted enums. I'm sure that there's a tutorial somewhere in this forum or on the wiki.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)