Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

mysql_query

$
0
0
I'm trying to compile an old gamemode so that I can test a few things on it, problem is I cannot compile it due to these errors:
Code:

error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)
warning 206: redundant test: constant expression is non-zero
: warning 215: expression has no effect
: error 035: argument type mismatch (argument 1)
: error 017: undefined symbol "mysql_store_result"
: error 017: undefined symbol "mysql_num_rows"
 : error 017: undefined symbol "mysql_retrieve_row"
: error 017: undefined symbol "mysql_get_field"
: error 017: undefined symbol "mysql_free_result"
: error 035: argument type mismatch (argument 1)

native MySQL_query in my a_mysql.inc:
Code:

native Cache:mysql_query(connectionHandle, query[], bool:use_cache = true);
the way MySQL_query is being used in the script :
Code:

case LOS_SANTOS:
                {
                format(string, sizeof(string), "UPDATE server SET Gamemode = '%d' WHERE Server = '1'",LAS_VENTURAS);
                mysql_query(string);
                }


I have tried every MySQL version back to r38 and none have worked, does anybody have some idea how to solve this problem or at least which a_mysql.inc version uses the format shown in the script?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>