Hi!
I'm quite new to this, so I need help

)
Code:
if( !id )
{
formatex( szQuery, charsmax( szQuery ), "UPDATE `bans` SET `unbanned` = '1' WHERE `id` = '%i' LIMIT 1;", SQL_ReadResult( hQuery, 0 ) );
SQL_ThreadQuery( g_hTuple, "SQL_QueryHandle", szQuery );
console_print( id, "SteamID %s is unbanned from ****.", szTargetAuthid );
return PLUGIN_HANDLED;
}
The problem is that it wont update when the ban time is over in the database, BUT.. It will be removed on the server side. So people cant join before it's over.
I can provide more information if needed.