View Single Post
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 #2

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