Mysql Prob !!! - 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: Mysql Prob !!! (
/showthread.php?tid=506340)
Mysql Prob !!! -
Crazydriver - 12.04.2014
Hello guys i am having a bit of trouble when i compile the script i get these errors i am using Mysql-r34.
error 035: argument type mismatch (argument 1)
PHP код:
case LOS_SANTOS:
{
format(string, sizeof(string), "UPDATE server SET Gamemode = '%d' WHERE Server = '1'",LAS_VENTURAS);
mysql_query(string);// THis line
}
Re : Mysql Prob !!! -
S4t3K - 12.04.2014
If you use R7 or above, you must specify a connectionHandle before specifying the query.
It should look like this
PHP код:
new MySQL;
MySQL = mysql_connect(host, user, db, pass);
mysql_query(MySQL, string);