Raised This Month: $ Target: $400
 0% 

[v2.5.2, March 19] Trouble in Terrorist Town mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
erkike93
Member
Join Date: Aug 2013
Old 03-10-2015 , 14:21   Re: [v2.5.1, February 15] Trouble in Terrorist Town mod
Reply With Quote #10

This is the whole code of public MySQL_TOP10Load (this is all the lines around 259)

PHP Code:
public MySQL_TOP10Load(failstateHandle:queryerror[], errcodedata[], datasize)
{
    if(
failstate == TQUERY_CONNECT_FAILED)
        
log_amx("[TTT] Load - Could not connect to SQL database.  [%d] %s"errcodeerror);
    else if(
failstate == TQUERY_QUERY_FAILED)
        
log_amx("[TTT] Load query failed. [%d] %s"errcodeerror);

    if(
SQL_NumResults(query) > 0
    {
        for(new 
num[3], j010i++)
        {
            static 
name[32];
            
SQL_ReadResult(query1namecharsmax(name));
            
#if AMXX_VERSION_NUM >= 183
            
TrieSetString(g_tTop10Players[i], "1"nametrue);
            
#else
            
TrieSetString(g_tTop10Players[i], "1"name);
            
#endif
            
            
for(214j++)
            {
                
num_to_str(jnumcharsmax(num));
                
#if AMXX_VERSION_NUM >= 183
                
TrieSetCell(g_tTop10Players[i], numSQL_ReadResult(queryj), true);
                
#else
                
TrieSetCell(g_tTop10Players[i], numSQL_ReadResult(queryj));
                
#endif
            
}
            
SQL_NextRow(query);
        }
    }
    
SQL_FreeHandle(query);

    return 
PLUGIN_HANDLED;

And the line 259 in my .sma is exactly this:

PHP Code:
SQL_ReadResult(query1namecharsmax(name)); 
Let me know if that is enough info or if u need anymore to be posted, to check that log, this happen when i startup my server or when come the change map.

P.S: Btw i'm using sqlite (ttt_stats 2) i haven't SQL Data Base or something like that, so i dont know if that is the reason because of that appears.

Last edited by erkike93; 03-10-2015 at 14:24.
erkike93 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 18:01.


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