Quote:
Originally Posted by Kar
Can you update the plugin error code to display the query callback for warnings and make it that the mysql_log shows the day in the timestamp and call it R39-4?
pawn Код:
[21:14:11] [WARNING] cache_get_row_int - no active cache [03:12:33] [WARNING] cache_get_row_int - no active cache [03:12:33] [WARNING] cache_get_row - no active cache [03:12:33] [WARNING] cache_get_row_int - no active cache [03:12:33] [WARNING] cache_get_row - no active cache [03:12:33] [WARNING] cache_get_row_int - no active cache [03:12:33] [WARNING] cache_get_row - no active cache [03:12:33] [WARNING] cache_get_row_int - no active cache [03:12:33] [WARNING] cache_get_row - no active cache [03:12:33] [WARNING] cache_get_row_int - no active cache [03:12:33] [WARNING] cache_get_row - no active cache [03:12:33] [WARNING] cache_get_row_int - no active cache [03:12:33] [WARNING] cache_get_row - no active cache [03:12:34] [WARNING] cache_get_row_int - no active cache [03:12:34] [WARNING] cache_get_row - no active cache [03:12:34] [WARNING] cache_get_row_int - no active cache [03:12:34] [WARNING] cache_get_row - no active cache [03:12:34] [WARNING] cache_get_row_int - no active cache [03:12:34] [WARNING] cache_get_row - no active cache [03:12:34] [WARNING] cache_get_row_int - no active cache [03:12:34] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [09:15:09] [WARNING] cache_get_row_int - no active cache [09:15:09] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:13:59] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [15:21:50] [WARNING] cache_get_row_int - no active cache [15:21:50] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [16:41:08] [WARNING] cache_get_row_int - no active cache [16:41:08] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [20:44:13] [WARNING] cache_get_row_int - no active cache [20:44:13] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache [22:55:21] [WARNING] cache_get_row_int - no active cache [22:55:21] [WARNING] cache_get_row - no active cache
I can't do much with warnings...
|
Exactly what I'm thinking, I'm getting this error:
Quote:
[13:02:41] [WARNING] cache_get_row_count - no active cache
|
It took me ages of tests to find where I was getting this error, and after find it, I noticed that the cache_delete function is the reason of that warning, but there's nothing wrong on my code:
Код:
else
{
new Float:OffX, Float:OffY,Float:OffZ, Float:RotX, Float:RotY, Float:RotZ, Float:SclX, Float:SclY, Float:SclZ, Color1, Color2;
mysql_format(MySQL, query, 512, "SELECT * FROM `equiped_items` WHERE `playerid` = %d AND `slotid` = 8", PlayerInfo[playerid][pid]);
new Cache:handle = mysql_query(MySQL, query, true);
OffX = cache_get_field_content_float(0, "OffsetX");
OffY = cache_get_field_content_float(0, "OffsetY");
OffZ = cache_get_field_content_float(0, "OffsetZ");
RotX = cache_get_field_content_float(0, "RotX");
RotY = cache_get_field_content_float(0, "RotY");
RotZ = cache_get_field_content_float(0, "RotZ");
SclX = cache_get_field_content_float(0, "ScaleX");
SclY = cache_get_field_content_float(0, "ScaleY");
SclZ = cache_get_field_content_float(0, "ScaleZ");
Color1 = cache_get_field_content_int(0, "Color1");
Color2 = cache_get_field_content_int(0, "Color2");
PlayerEquippedItem[playerid][EItemOffX][8] = OffX;
PlayerEquippedItem[playerid][EItemOffY][8] = OffY;
PlayerEquippedItem[playerid][EItemOffZ][8] = OffZ;
PlayerEquippedItem[playerid][EItemRotX][8] = RotX;
PlayerEquippedItem[playerid][EItemRotY][8] = RotY;
PlayerEquippedItem[playerid][EItemRotZ][8] = RotZ;
PlayerEquippedItem[playerid][EItemSclX][8] = SclX;
PlayerEquippedItem[playerid][EItemSclY][8] = SclY;
PlayerEquippedItem[playerid][EItemSclZ][8] = SclZ;
PlayerEquippedItem[playerid][EItemCol1][8] = Color1;
PlayerEquippedItem[playerid][EItemCol2][8] = Color2;
SetPlayerAttachedObject(playerid, 8, 371, 1, OffX, OffY, OffZ, RotX, RotY, RotZ, SclX, SclY, SclZ, Color1, Color2);
return cache_delete(handle);
}
If I remove the cache_delete function from this code, I get no errors. I have no problem with the retrieved result from query, but this warning is quite annoying and I don't know why I'm getting it.