07.12.2014, 09:39
I haven't been up to date with relases for quite long time. With latest release for some reason inline responses are doubled?
Using latest YSI.
pawn Код:
#include <a_samp>
#define MYSQL_USE_YINLINE
#include <a_mysql>
new dbhandle;
forward Qt();
public Qt() {
print("Public instead");
}
public OnGameModeInit() {
dbhandle = mysql_connect("localhost", "root", "samp_733", "");
inline Fetch() {
printf("Inline");
}
mysql_tquery_inline(dbhandle, "SELECT 2 + 2 AS foobar FROM dual", using inline Fetch, "");
mysql_tquery(dbhandle, "SELECT 2 + 2 AS foobar FROM dual", "Qt", "");
return 1;
}
main() {
print("Hello");
}
Quote:
[11:26:03] Hello [11:26:03] Number of vehicle models: 0 [11:26:03] Inline [11:26:03] Inline [11:26:03] Public instead |