Skip to content

Instantly share code, notes, and snippets.

@Misiur
Created February 15, 2015 14:23
Show Gist options
  • Save Misiur/01898cc095b52ee0b04f to your computer and use it in GitHub Desktop.
Save Misiur/01898cc095b52ee0b04f to your computer and use it in GitHub Desktop.
#include <a_samp>
#include <YSI\y_inline>
#include <a_mysql>
new mysql;
main() {
}
public OnGameModeInit()
{
mysql = mysql_connect("localhost", "root", "server", "");
TestF("WAT");
return 1;
}
TestF(wut[])
{
inline Test(string:str[])
{
printf("WAT: %d %s", cache_get_row_int(0, 0), str);
inline SubTest(string:sut[])
{
printf("WEET %d %s", cache_get_row_int(0, 0), sut);
}
mysql_tquery_inline(mysql, "SELECT 2+5 AS a FROM dual", using inline SubTest, "s", str);
}
mysql_tquery_inline(mysql, "SELECT 2+2 AS a FROM dual", using inline Test, "s", wut);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment