Mysql help needed ! fast :(
#2

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


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
}
But you can use this to:

pawn Код:
mysql_function_query(dbHandle, "SELECT ... FROM ...", true, "", "");
If you don't want something to be executed after mysql query or to send data etc ... i recomand you that tutorial
Reply


Messages In This Thread
Mysql help needed ! fast :( - by Hade. - 06.03.2013, 09:32
Re: Mysql help needed ! fast :( - by shady001 - 06.03.2013, 09:34
Re: Mysql help needed ! fast :( - by Hade. - 06.03.2013, 09:56
Re: Mysql help needed ! fast :( - by RajatPawar - 06.03.2013, 10:03
Re: Mysql help needed ! fast :( - by Hade. - 06.03.2013, 10:05
Re: Mysql help needed ! fast :( - by RajatPawar - 06.03.2013, 10:07

Forum Jump:


Users browsing this thread: 1 Guest(s)