Raised This Month: $ Target: $400
 0% 

SQL <-> AMXX Behaviour Question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 04-09-2007 , 11:06   Re: SQL <-> AMXX Behaviour Question
Reply With Quote #2

Well...
You have two options:

1. You can make pernament connection, that you open the connection at plugin_init, and closes it at plugin_end
PS: Might be useful to re-open the connection every 200sec, or the server will drop you

2. You can make something like:
PHP Code:
new mysqlconections 0;

public 
openmysql(){
    if(
mysqlconections == 0){
        
//Conenct to server    
    
}
    
mysqlconections++;    
}

public 
closemysql(){
    
mysqlconections--;
    if(
mysqlconections == 0){
        
//Close to server    
    
}

I do not know how to express that in words D:
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
 



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 06:46.


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