06.03.2013, 09:34
if you are using mysql version r7 of BlueG the new comand is mysql_function_query , not mysql_query !
Here is a tutorial: https://sampforum.blast.hk/showthread.php?tid=337810
But you can use this to:
If you don't want something to be executed after mysql query or to send data etc ... i recomand you that tutorial
Here is a tutorial: https://sampforum.blast.hk/showthread.php?tid=337810
pawn Код:
mysql_function_query(dbHandle, "SELECT ... FROM ...", true, "OnQueryFinished", "siii", "Andre", 1, 2, 3);
forward OnQueryFinished(name[], number_1, number_2, number_3);
public OnQueryFinished(name[], number_1, number_2, number_3)
{
printf("Data: %s %i %i %i", name, number_1, number_2, number_3);
// will print: Andre 1 2 3
}
pawn Код:
mysql_function_query(dbHandle, "SELECT ... FROM ...", true, "", "");