Raised This Month: $ Target: $400
 0% 

Booleans outputs integers?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fatal_nl
Member
Join Date: Apr 2017
Old 08-08-2018 , 21:20   Booleans outputs integers?
Reply With Quote #1

PHP Code:
new bool:g_bAdmin[33]

public 
client_authorized(id)
{
    
g_bAdmin[id] = bool:(get_user_flags(id) & ADMIN_LEVEL_G)
}

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

This wil give 262144 in chat. I thought booleans are supposed to give either true (1) or false (0).


Last edited by fatal_nl; 08-08-2018 at 21:21.
fatal_nl 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