Raised This Month: $ Target: $400
 0% 

How to create properly a native for a bool value?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cruze
Veteran Member
Join Date: May 2017
Old 10-15-2022 , 04:35   Re: How to create properly a native for a bool value?
Reply With Quote #1

if ( RankedMatch() == true )
if ( RankedMatch() == true )
PHP Code:
public Action DebugWar_Cmd(int clientint args)
{
    if ( 
RankedMatch() == true )
    {
        
PrintToChat(client,"Enabled");
    }
    
    if ( 
RankedMatch() == false )
    {
        
PrintToChat(client,"Disabled");
    }

Also, you can change native return type to boolean:
native bool RankedMatch();
__________________
Taking paid private requests! Contact me

Last edited by Cruze; 10-15-2022 at 04:36.
Cruze is offline
Reply



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 19:12.


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