SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 30/10/2019, 12:25 PM   #1
krozer1
Little Clucker
 
Join Date: Oct 2019
Posts: 6
Reputation: 0
Post Centos 7 MEM_get_val

Hi all, it gives mem error in centos 7 It comes from PreiwDialogModel.inc but it doesn't match centos 7
although the current version

[10:20:11] [debug] MEM_get_val
[10:20:11] [debug] MEM_get_arr
[10:20:11] [debug] MEM_new
[10:20:11] [debug] MEM_set_val
[10:20:11] [debug] MEM_delete
[10:20:11] [debug] MEM_set_arr
[10:20:11] [debug] Run time error 19: "File or function is not found"
[10:20:11] [debug] MEM_get_val
[10:20:11] [debug] MEM_get_arr
[10:20:11] [debug] MEM_new
[10:20:11] [debug] MEM_set_val
[10:20:11] [debug] MEM_delete
[10:20:11] [debug] MEM_set_arr


System : Centos 7

Helpp
krozer1 is offline   Reply With Quote
Old 30/10/2019, 08:38 PM   #2
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,477
Reputation: 1632
Default Re: Centos 7 MEM_get_val

Just like the log says: Runtime errr 19: "File or function is not found"
It says the MEM_(...) functions aren't found, thus you are missing a proper plugin (these aren't default native SAMP functions).
The script compiled fine because it are native functions (native) -That means the the function isn't used from within the AMX file but in the runtime.
If you searched on a search engine you would have found this. I did search for those functions and it seems it's this plugin: https://forum.sa-mp.com/showthread.php?t=645166
__________________
Do not click on this URL -It is secret information
RIP Slayer 1981-2019 \m/
Kwarde is offline   Reply With Quote
Old 30/10/2019, 09:18 PM   #3
krozer1
Little Clucker
 
Join Date: Oct 2019
Posts: 6
Reputation: 0
Default Re: Centos 7 MEM_get_val

Quote:
Originally Posted by Kwarde View Post
Just like the log says: Runtime errr 19: "File or function is not found"
It says the MEM_(...) functions aren't found, thus you are missing a proper plugin (these aren't default native SAMP functions).
The script compiled fine because it are native functions (native) -That means the the function isn't used from within the AMX file but in the runtime.
If you searched on a search engine you would have found this. I did search for those functions and it seems it's this plugin: https://forum.sa-mp.com/showthread.php?t=645166
this is not working
krozer1 is offline   Reply With Quote
Old 30/10/2019, 09:55 PM   #4
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,477
Reputation: 1632
Default Re: Centos 7 MEM_get_val

What does your log say about (not) loading the plugin then?
__________________
Do not click on this URL -It is secret information
RIP Slayer 1981-2019 \m/
Kwarde is offline   Reply With Quote
Old 30/10/2019, 10:52 PM   #5
krozer1
Little Clucker
 
Join Date: Oct 2019
Posts: 6
Reputation: 0
Default Re: Centos 7 MEM_get_val

Quote:
Originally Posted by Kwarde View Post
What does your log say about (not) loading the plugin then?

pawn f5 throwing no problem but the server does not happen when you open the centos 7

Do you have a discord or teamspeak?
krozer1 is offline   Reply With Quote
Old 30/10/2019, 10:55 PM   #6
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,477
Reputation: 1632
Default Re: Centos 7 MEM_get_val

Allright, I'll just literally repeat myself.
Quote:
The script compiled fine because it are native functions (native) -That means the the function isn't used from within the AMX file but in the runtime.
That is why.
I am pretty sure you didn't (properly) load the (right) plugin
__________________
Do not click on this URL -It is secret information
RIP Slayer 1981-2019 \m/
Kwarde is offline   Reply With Quote
Old 30/10/2019, 11:10 PM   #7
dugi
Beta Tester
 
Join Date: Jun 2007
Location: Poland
Posts: 2,305
Reputation: 841
Default Re: Centos 7 MEM_get_val

Memory hacking plugins won't work on CentOS due to SELinux policy, you'll need to disable SELinux or switch to a different distribution.
dugi is offline   Reply With Quote
Old 30/10/2019, 11:17 PM   #8
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,477
Reputation: 1632
Default Re: Centos 7 MEM_get_val

Bloody SELinux. Messed with my Viper4Android some time ago.

OT: Open /etc/selinux/config and set SELINUX to disabled or use 'setenforce 0' (using su ofc)
I don't recommend any of these options but if you still want to, I'd go for the second option. Every time you restart you must set it to permissive again but that's slightly less insecure than permanently disabling it.

If you're using a host you can forget it. Then you should remove all the MEM_ functions in all your scripts.
__________________
Do not click on this URL -It is secret information
RIP Slayer 1981-2019 \m/
Kwarde is offline   Reply With Quote
Old 31/10/2019, 12:35 AM   #9
krozer1
Little Clucker
 
Join Date: Oct 2019
Posts: 6
Reputation: 0
Default Re: Centos 7 MEM_get_val

I did what you both said but the problem is the same
krozer1 is offline   Reply With Quote
Old 31/10/2019, 09:30 AM   #10
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,477
Reputation: 1632
Default Re: Centos 7 MEM_get_val

Now that I think of it.
@dugi: Even though that memory hacking won't work in enforcing mode, I assume that it wouldn't throw runtime error 19 if the plugin was actually loaded? The functions might not work but I'd think that they would be recognised anyway (never used SAMP on Linux distributions)
@krozer1: What does your server log say about loading pawn_memory.so?
__________________
Do not click on this URL -It is secret information
RIP Slayer 1981-2019 \m/
Kwarde is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bad ELF centos 6.7 AmirHossaiN Server Support 6 16/08/2015 02:06 AM
RC-3 on Centos feartonyb Server Support 3 27/03/2015 08:43 PM
CentOS 7 - Are you going to use it? maddinat0r Everything and Nothing 14 08/07/2014 11:35 AM
Nee help with CentOS. RaiNyDayS Server Support 28 25/11/2013 11:36 AM
CentOS Sanady Everything and Nothing 7 28/08/2012 04:17 AM


All times are GMT. The time now is 02:22 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.