06.03.2013, 10:03
With mysql_function_query, you can use the callback parameter. It means, the callback YOU HAVE SPECIFIED will be called as the query will be executed! So you can do awesome things with it.
This should print "Some string parameter".
pawn Код:
mysql_function_query("SELECT ... FROM ...", true, "OnQueryFinished", "s", "Some string parameter");
pawn Код:
forward OnQueryFinished(somestring[]);
public OnQueryFinished(somestring[])
{
printf("Data: %s", somestring);
return 1;
}