Raised This Month: $ Target: $400
 0% 

Closing DBI at plugin_end


Post New Thread Reply   
 
Thread Tools Display Modes
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
fang
Senior Member
Join Date: Nov 2007
Location: New Jersey
Old 07-12-2010 , 17:15   Re: Closing DBI at plugin_end
Reply With Quote #2

Use SQLx :X More code but it works better.
fang is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 07-12-2010 , 17:25   Re: Closing DBI at plugin_end
Reply With Quote #3

Well, unfortunately it won't be possible as I'm working with an already made plugin. And besides that I'm not that good at scripting.
t3hNox is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 07-14-2010 , 07:07   Re: Closing DBI at plugin_end
Reply With Quote #4

*bump*
t3hNox is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 07-14-2010 , 07:15   Re: Closing DBI at plugin_end
Reply With Quote #5

You are supposed to wait 2 weeks before you can use bump...
Even if you are working on finished plugin, there is nothing wrong with converting it from dbi to sqlx. If you can't do it yourself, then post it (in suggestions/requests) and wait for someone else to do it for you.
__________________
Impossible is Nothing
Sylwester is offline
Reply



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