Raised This Month: $ Target: $400
 0% 

Closing DBI at plugin_end


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
t3hNox
Senior Member
Join Date: Oct 2009
Old 07-12-2010 , 16:59   Closing DBI at plugin_end
Reply With Quote #1

Hi,
I need a quick help. I'm working on some mod and I've found out (or at least I think so) if SQL data base is closed incorrectly on map change, server crashes.

With this code, I get tag mismatch warning and server crashes once in ~five times on map change:
PHP Code:
public plugin_end() {
    if(
dbc 0) {     
        
dbi_close(dbc
    }

However, with this plugin completes fine but server always crashes:
PHP Code:
public plugin_end() {
    if(
dbc) {     
        
dbi_close(dbc
    }

Any ideas ?
t3hNox is offline
 


Thread Tools
Display Modes

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 07:05.


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