Raised This Month: $ Target: $400
 0% 

Updating database when ban is over


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Devoti
New Member
Join Date: Nov 2013
Old 09-23-2020 , 14:20   Updating database when ban is over
Reply With Quote #1

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.
Devoti 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 13:49.


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