[Question] Bool
#1

Hey guys i've seen this placed around many gamemodes, so i finally figured to find out, what the hell is it, and how the hell can i use it correctly.

Lets say i would use it in my vehicle system, it would be something like this:
pawn Код:
enum vdata {
    vSQLID,
    vModel,
   
    Owner[MAX_PLAYER_NAME],
    bool:Ownable,
}
Would that be correct use? if so how would i then detect say 0 = un buyable and 1 = buyable? Thanks in advance guys.
Reply
#2

nvm.............
Reply
#3

There are no optimization differences between using booleans and integers in PAWN, this is the main reason to why they're used in other programming languages.

I'd personally just stick to integers for PAWN, but it's your choice.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)