Mysql Prob !!!
#1

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(stringsizeof(string), "UPDATE server SET Gamemode = '%d' WHERE Server = '1'",LAS_VENTURAS);
        
mysql_query(string);// THis line
        

Reply
#2

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(hostuserdbpass);

mysql_query(MySQLstring); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)