Closed Ino-Bagaric closed 4 years ago
Hi, please post your server version and the OS (distribution, core etc.).
Hi, thanks for the quick reply!
SAMP server: 0.3.7-R2 (latest)
vps server:
from /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
from: /proc/version
Linux version 4.18.0-147.3.1.el8_1.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC)) #1 SMP Fri Jan 3 23:55:26 UTC 2020
Is there anything else you might need?
Seems almost the same to one of the servers I have; I will test the plugin there.
In the meantime, can you test if it works without other plugins, and perhaps prepare an example server installation that I could download and try?
Alright, I will prepare it right now on small example, I'll let you know soon
#include <a_samp>
#include <PawnPlus>
#include <strlib>
enum E_BUSINESS_PRODUCT {
bpName[24],
bpDefaultPrice
}
main() {
new Map:m = map_new();
map_str_add(m, "FirstKey", 555);
map_str_add(m, "AnotherKey", 420);
map_str_add(m, "Something", 415647);
map_str_add(m, "Test", 486541);
for (new Iter:i = map_iter(m); iter_inside(i); iter_move_next(i)) {
new key[24];
new value;
iter_get_key_arr_safe(i, key);
iter_get_value_safe(i, value);
printf("%s => %d", key, value);
}
printf(" -> %d", map_size(m));
map_delete(m);
m = map_new();
new PRODUCTS[][E_BUSINESS_PRODUCT] = {
{"product 1", 50},
{"product 2", 100},
{"cigs", 30},
{"weed", 35}
};
new List:myList = list_new();
for (new i = 0; i < sizeof(PRODUCTS); i++) {
//list_add_arr(myList, PRODUCTS[i]);
list_add_str(myList, sprintf("%d|%s", PRODUCTS[i][bpDefaultPrice], PRODUCTS[i][bpName]));
}
for (new i = 0; i < list_size(myList); i++) {
new data[32];
list_get_arr(myList, i, data);
new final[2][32];
strexplode(final, data, "|");
printf("Item: %s Price: %d", final[1], strval(final[0]));
}
}
Using only pawnplus plugin, getting the same output .. :/ that's an example you can try
Cannot reproduce, can you prepare an archive with the whole installation? I mean the server binary, all plugins etc.
This crashes during the hook initialization phase, which is something that could be better directed to subhook.
Here it is, if you meant this, there's even server_log from the first try
Quick update: I have also tried to run it in the docker container
debian:jessie
Failed (/usr/lib32/libstdc++.so.6: version 'GLIBCXX_3.4.21' not found (required by plugins/PawnPlus.so))
then I tried on the debian:stretch
where I get the same output as before on centos
on the ubuntu:latest
same
on the ubuntu:xenial
Failed (/usr/lib32/libstdc++.so.6: version 'GLIBCXX_3.4.22' not found (required by plugins/PawnPlus.so))
Even if I just try to use plugins PawnPlus.so
without including it in gamemode at all, still the same, even in docker containers
Another update here: I switched server to debian 8, and everything is working as it should! so, probably centos 8 has some issues
Can you check the v1.3.1 if you still have access to the original platform?
Unfortunately, I don't have access to it anymore
Hi, I've tried PawnPlus.so and PawnPlus-static.so from the release page but getting a crash, also I tried to compile it on my server, but still getting the same output