Mysql cache_get_value() mismatching arguments.
#1

I am getting errors when using cache_get_value() with MySQL 41-4.

Here is the tquery:

Код:
mysql_tquery(g_SQL, "SELECT * FROM usertest WHERE name = 'Dave'", "SeifSelectCallback");
Код:
forward SeifSelectCallback();
public SeifSelectCallback() {
	new id;
	new name[25];
	if (cache_num_rows() > 0) {
		cache_get_value(0, "id", id, 10);
		cache_get_value(0, "name", name, 25);
	}
	print("Id:");
	print(id);
	print("Name:");
	print(name);
	return 1;
}
Here are the errors:
Код:
gamemodes/test.pwn(101) : error 035: argument type mismatch (argument 3)
gamemodes/test.pwn(105) : error 035: argument type mismatch (argument 1)
gamemodes/test.pwn(98) : warning 203: symbol is never used: "id"
i can't figure this out especially because I can't find documentation for R41-4. Thanks in advance!!
Reply


Messages In This Thread
Mysql cache_get_value() mismatching arguments. - by Seifspeed - 15.07.2018, 15:34
Re: Mysql cache_get_value() mismatching arguments. - by Calisthenics - 15.07.2018, 15:41
Re: Mysql cache_get_value() mismatching arguments. - by Iguman - 15.07.2018, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)