02.03.2014, 17:54
Quote:
I'm trying to invoke the functions from the MySQL plugin v R6 (G Stylezzzz / madinator), but it seems like I'm missing something. This is my code:
Код:
void mysql_connect(const char* hst, const char* usr, const char* db, const char* pass) { return (void)sampgdk_invoke_native(sampgdk_find_native("mysql_connect"), "rrrr", hst, usr, db, pass); } Код:
sqlHandler = mysql_connect (SQL_HOST, SQL_DB, SQL_USER, SQL_PASS); What else do I need? I mean, can I just invoke the plugin's functions, or I need a handler class or something? Is void the correct 'type' for the invoke_native call? thanks edit: it compiles even with the crap code I made. |