View Single Post
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-09-2018 , 00:14   Re: Booleans outputs integers?
Reply With Quote #2

You're just retagging; you're not actually changing the value.

PHP Code:
new bool:g_bAdmin[33

public 
client_authorized(id

    
g_bAdmin[id] = !!(get_user_flags(id) & ADMIN_LEVEL_G


public 
some_function(id

    
client_print(0print_chat"%i"g_bAdmin[id]) 

Try this. This is how we'd do it in Sourcemod, so it should be the same here.
__________________
ddhoward is offline