16.08.2015, 16:43
Quote:
|
Can anyone compile R39-3 to work with CentOS 6.5 (And MySQL Server 5.1) ?
I get this error on running the server: Код:
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, ©2005-2015 SA-MP Team [...] [21:24:11] Loading plugin: mysql.so [21:24:11] Failed (libmysqlclient.so.18: cannot open shared object file: No such file or directory) [21:24:11] Loaded 2 plugins. [...] |
Quote:
|
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 Код:
|
If you want to help: there's a first beta version coming soon and I'll need some testers for this. I'll post more details when this first beta version is finished.
Quote:
|
[...]
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);
}
|

