Raised This Month: $ Target: $400
 0% 

[HELP]Invalid dbi handle 0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dxteam
Senior Member
Join Date: Dec 2005
Old 01-17-2009 , 19:35   [HELP]Invalid dbi handle 0
Reply With Quote #1

i have this error and don`t know how to fix that..
Code:
L 01/18/2009 - 02:26:25: [MySQL] Invalid DBI handle 0
L 01/18/2009 - 02:26:25: [AMXX] Displaying debug trace (plugin "reg.amxx")
L 01/18/2009 - 02:26:25: [AMXX] Run time error 10: native error (native "dbi_query")
L 01/18/2009 - 02:26:25: [AMXX]    [0] module.inc::login (line 478)
L 01/18/2009 - 02:26:25: [AMXX]    [1] module.inc::client_infochanged (line 384)
L 01/18/2009 - 02:26:33: [MySQL] Invalid DBI handle 0
L 01/18/2009 - 02:26:33: [AMXX] Displaying debug trace (plugin "reg.amxx")
L 01/18/2009 - 02:26:33: [AMXX] Run time error 10: native error (native "dbi_query")
L 01/18/2009 - 02:26:33: [AMXX]    [0] module.inc::login (line 478)
L 01/18/2009 - 02:26:33: [AMXX]    [1] module.inc::client_infochanged (line 384)
-----------------------------
login script 473-492 strings

PHP Code:
public login(name[],pass[])
{
    new 
hash[34]
    
md5(pass,hash)
    {
        new 
Result:result dbi_query(gMySQL,"SELECT * FROM %s WHERE name like '%s' and pass like BINARY '%s'"USER_TABLEnamehash)
        if(
result <=RESULT_FAILED)
        {
            
dbi_free_result(result)
            return 
1
        
}
        
result dbi_query(gMySQL,"SELECT * FROM %s WHERE name like '%s' and pass like BINARY '%s'"WAITING_TABLEnamehash)
        if(
result <=RESULT_FAILED)
        {
            
dbi_free_result(result)
            return -
2
        
}
    }
    return -
1

client_infochanged 374-397 strings

PHP Code:
public client_infochanged(id)
{
    new 
newName[32], oldName[32], pass[35], details[2], bool:changeName false
    get_user_name
(id,oldName,31)
    
get_user_info(id"name"newName,31)
    
get_user_info(idPASSWORD_FIELDpass34)
    
details[0] = id

    
if(!equali(oldName,newName))
        
changeName true
    
if (login(newNamepass) > 0)
    {
        if(
changeName)
            
set_task(5.0,"completeLoginWrapper",470+id,details,1)
        return 
PLUGIN_CONTINUE
    
}

    if(
contain(newNameRESERVED_UNREGISTERED_TEXT) == -1)
    {        
        
server_cmd("kick #%d Register to access this server."get_user_userid(id))
    }

    return 
PLUGIN_CONTINUE

dxteam is offline
Send a message via ICQ to dxteam
 


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 01:54.


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