View Single Post
sebxx4
Senior Member
Join Date: Feb 2013
Old 04-24-2022 , 03:06   Re: sql_threadquery - cannot set user flags
Reply With Quote #3

Now, I got it like this:

PHP Code:
    new id Data[0]
    new 
flags[32], output[1024]

    if ( 
SQL_NumResults(Query) )
    {
        while( 
SQL_MoreResultsQuery ) )
        {
            new 
qcolAccess SQL_FieldNameToNumQuery"access" )
            
SQL_ReadResultQueryqcolAccessflags31 )
            
addoutputsizeof(output), flagssizeof(flags) )
            
SQL_NextRow(Query)
        }
    }

    
SQL_FreeHandle(g_SqlTuple)

    
set_task0.2"set_flags"idoutputsizeof(output) );

    return 
PLUGIN_CONTINUE
}

public 
set_flags( const flags[], id  )
{
    
set_user_flagsidread_flagsflags ) )
    
log_amx"Set flags: %s to player: #%d"flagsid )

But it still don't set access flags :/ I have logged in console "Set flags: t to player: #1" so it should work...

Last edited by sebxx4; 04-24-2022 at 03:07.
sebxx4 is offline