Quote:
Originally Posted by arne1288
^ 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(client, auth, sizeof(auth));
Format(query, sizeof(query), "SELECT * FROM TEST");
DataPack pack = new DataPack();
pack.WriteCell(client);
pack.WriteString(Text);
tDatabase.Query(TestCheck, query, pack);
return Plugin_Continue;
}
public TestCheck(Handle:owner, Handle:HQuery, const String:error[], any data)
{
DataPack pack = data;
pack.Reset();
int client = pack.ReadCell();
char Text[64];
pack.ReadString(Text, 64);
CloseHandle(pack);
}
Here's an example of both used.. Forget the syntax errors, that's the logic I'm using