Raised This Month: $ Target: $400
 0% 

Booleans outputs integers?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode