mysql_query
#1

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:
Код:
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:
Код:
native Cache:mysql_query(connectionHandle, query[], bool:use_cache = true);
the way MySQL_query is being used in the script :
Код:
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?
Reply
#2

It's R5 or R6.
Reply
#3

check your connectionHandle, than edit mysql_query(handle,string);
if you can't find handle, just check your mysql_connect code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)