29.01.2018, 18:26
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:
native MySQL_query in my a_mysql.inc:
the way MySQL_query is being used in the script :
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?
Код:
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 Cache:mysql_query(connectionHandle, query[], bool:use_cache = true);
Код:
case LOS_SANTOS: { format(string, sizeof(string), "UPDATE server SET Gamemode = '%d' WHERE Server = '1'",LAS_VENTURAS); mysql_query(string); }