View Single Post
xm3kilo
Member
Join Date: Jan 2018
Old 03-10-2018 , 10:04   Re: DataPacks and queries leaking?
Reply With Quote #5

Quote:
Originally Posted by arne1288 View Post
^ Is still valid....

Post the full code regarding the queries and packs, if you expect any help, we are not mind readers.
The plugin is 4000 lines.

PHP Code:
public Action:Test(client, const String:command[], args)
{    
    new 
String:query[2000];
    
GetClientAuthString(clientauthsizeof(auth));
    
Format(querysizeof(query), "SELECT * FROM TEST");
    
    
DataPack pack = new DataPack();
    
pack.WriteCell(client);
    
pack.WriteString(Text);
    
    
tDatabase.Query(TestCheckquerypack);

    return 
Plugin_Continue;
}

public 
TestCheck(Handle:ownerHandle:HQuery, const String:error[], any data)
{
        
DataPack pack data;
        
pack.Reset();
        
int client pack.ReadCell();
        
char Text[64];
        
pack.ReadString(Text64);
                
        
CloseHandle(pack);

Here's an example of both used.. Forget the syntax errors, that's the logic I'm using
xm3kilo is offline