SA-MP Forums Archive
error 017: undefined symbol "mysql_query" - 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: error 017: undefined symbol "mysql_query" (/showthread.php?tid=417855)



error 017: undefined symbol "mysql_query" - Noles2197 - 22.02.2013

Tutorial: https://sampforum.blast.hk/showthread.php?tid=159785
Plugin: https://sampforum.blast.hk/showthread.php?tid=56564

I'm new to this and wanted to use a tutorial to make the registration system, but I got this error and when I searched, it was updated to "mysql_function_query", but I don't know much as I just started. Can someone update my code so it compiles?

Quote:
Originally Posted by BlueG
View Post
mysql_function_query( connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:... ) *
Code:
error 017: undefined symbol "mysql_query"
pawn Code:
public OnGameModeInit()
{
    mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);
    mysql_query("CREATE TABLE IF NOT EXISTS stats(user VARCHAR(24), password VARCHAR(24), cash INT(8), IP VARCHAR(16) )");
    return 1;
}



Re: error 017: undefined symbol "mysql_query" - Calabresi - 22.02.2013

Have you downloaded R7+? You have to use threaded queries if you did so.


Re: error 017: undefined symbol "mysql_query" - Noles2197 - 22.02.2013

Quote:
Originally Posted by Calabresi
View Post
Have you downloaded R7+? You have to use threaded queries if you did so.
Yeah, I'm asking how I can do that with these


Re: error 017: undefined symbol "mysql_query" - Scenario - 22.02.2013

If you don't know anything about threaded queries, then stick with R6. Threaded queries are more advanced and will require more work/effort than you seem like you want to give.


Re: error 017: undefined symbol "mysql_query" - Richie© - 22.02.2013

or read this; https://sampforum.blast.hk/showthread.php?tid=337810


Re: error 017: undefined symbol "mysql_query" - Noles2197 - 22.02.2013

Thanks


Re: error 017: undefined symbol "mysql_query" - PabloDiCostanzo - 22.02.2013

THIS! can help you