Callback parameter in mysql threaded function. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Callback parameter in mysql threaded function. (
/showthread.php?tid=493359)
Callback parameter in mysql threaded function. -
audriuxxx - 08.02.2014
Hi,
Can i use callback, when i format mysql query, not select anything, but update ?
Re: Callback parameter in mysql threaded function. -
Hostskool - 08.02.2014
Yes, simply use a empty callback like this
Код:
mysql_function_query(g_Handle, query, false, "SendQuery", "");
forward SendQuery();
public SendQuery() // EMPTY
{
return 1;
}
Re: Callback parameter in mysql threaded function. -
audriuxxx - 08.02.2014
Can i do two for in one time? for Ex:
for(new i .....)
{
}
for(new qe ... )
{
}
Re: Callback parameter in mysql threaded function. -
Hostskool - 08.02.2014
Quote:
Originally Posted by audriuxxx
Can i do two for in one time? for Ex:
for(new i .....)
{
}
for(new qe ... )
{
}
|
I don't see any issue with that..
If you are planning to use this mysql_function_query inside it? Threaded queries execute 1 by 1 so, you shouldn't have any issues..