-
-
Save Misiur/01898cc095b52ee0b04f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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