R34 warnings in mysql_log (no active cache)
#1

Hi all, I'm trying to rewrite my MySQL version from R6 to R34, but in mysql_log I found a lot of warnings. I tryied to ****** it, but it's nonsense.

Код HTML:
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:08] [WARNING] cache_get_row_count - no active cache
[20:39:30] [WARNING] cache_get_row_count - no active cache
[20:39:41] [WARNING] cache_get_row_count - no active cache
[20:39:41] [WARNING] cache_get_field_count - no active cache
[20:40:19] [WARNING] cache_get_row_count - no active cache
[20:40:19] [WARNING] cache_get_row_count - no active cache
[20:40:29] [WARNING] cache_get_row_count - no active cache
[20:40:29] [WARNING] cache_get_field_count - no active cache
Maybe problem is in this code?

Код HTML:
stock LoadPlayerData(playerid)
{
	if(!IsPlayerConnected(playerid)) return 1;

	new Float: P_Pos[3], Query[200];

	format(Query, sizeof(Query), "SELECT * FROM `players` WHERE `Vardas` = '%s'", GetPlayerNameEx(playerid));

	new Cache:data = mysql_query(DB, Query);

	if(mysql_num_rows() != 0)
	{
		SetPlayerVirtualWorld(playerid, 						cache_get_field_content_int(playerid, "World"));
		SetPlayerInterior(playerid, 							cache_get_field_content_int(playerid, "Interior"));
		SetPlayerDrunkLevel(playerid, 							cache_get_field_content_int(playerid, "Girtumas"));
		SetPlayerMoneyA(playerid, 							cache_get_field_content_int(playerid, "MoneyPocket"));
		PlayerInfo[playerid][Ieskomas] 							= cache_get_field_content_int(playerid, "Wanted");
		PlayerInfo[playerid][Experience] 						= cache_get_field_content_int(playerid, "Xp");
		PlayerInfo[playerid][AdminLevel] 						= cache_get_field_content_int(playerid, "Admin");
		P_Pos[0]									= cache_get_field_content_float(playerid, "pos_X");
		P_Pos[1]									= cache_get_field_content_float(playerid, "pos_Y");
		P_Pos[2]									= cache_get_field_content_float(playerid, "pos_Z");

		SetPlayerScore	(playerid, PlayerInfo[playerid][Experience]);
		SetPlayerPos 	(playerid, P_Pos[0], P_Pos[1], P_Pos[2]);
	}

	cache_delete(data);

	return 1;
}
Reply


Messages In This Thread
R34 warnings in mysql_log (no active cache) - by rOps - 19.01.2016, 09:12
Re: R34 warnings in mysql_log (no active cache) - by Marcuse - 19.01.2016, 10:32
Re: R34 warnings in mysql_log (no active cache) - by rOps - 19.01.2016, 11:17

Forum Jump:


Users browsing this thread: 2 Guest(s)