[Server did not start up] Help thanks
#21

What does GetPlayerVehicle and GetGangVehicle return when a match not found? If it returns INVALID_PLAYER_ID/INVALID_VEHICLE_ID then you need to make sure that "v" is not equal to those definitions (or 65535) before using it in arrays. I doubt it passed the check and accessed LockStatus array.

Now that I'm thinking about it, you can just add above "new v = ..." line:
pawn Code:
if (carid == INVALID_VEHICLE_ID) return;
since the vehicle was passed is not valid there is really no reason to do the rest.
Reply
#22

Quote:
Originally Posted by Konstantinos
View Post
What does GetPlayerVehicle and GetGangVehicle return when a match not found? If it returns INVALID_PLAYER_ID/INVALID_VEHICLE_ID then you need to make sure that "v" is not equal to those definitions (or 65535) before using it in arrays. I doubt it passed the check and accessed LockStatus array.

Now that I'm thinking about it, you can just add above "new v = ..." line:
pawn Code:
if (carid == INVALID_VEHICLE_ID) return;
since the vehicle was passed is not valid there is really no reason to do the rest.
Hi sir is this the reason why the server did not up? I am not good when it comes to scripting. Could you pls tell me what to do so that I can run my server asap?

Here's the latest SERVER LOGS when I run it via Putty and checked the logs on ftp

Code:
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[20:21:19] 
[20:21:19] Server Plugins
[20:21:19] --------------
[20:21:19]  Loading plugin: audio.so
[20:21:19] 

*** Audio Plugin v0.5 by Incognito loaded ***

[20:21:19]   Loaded.
[20:21:19]  Loading plugin: sscanf.so
[20:21:19] 

[20:21:19]  ===============================

[20:21:19]       sscanf plugin loaded.     

[20:21:19]    © 2009 Alex "Y_Less" Cole

[20:21:19]    0.3d-R2 500 Players "dnee"

[20:21:19]  ===============================

[20:21:19]   Loaded.
[20:21:19]  Loading plugin: streamer.so
[20:21:19] 

*** Streamer Plugin v2.7.8 by Incognito loaded ***

[20:21:19]   Loaded.
[20:21:19]  Loading plugin: Whirlpool.so
[20:21:19]  
[20:21:19]  ==================
[20:21:19]  
[20:21:19]   Whirlpool loaded
[20:21:19]  
[20:21:19]  ==================
[20:21:19]  
[20:21:19]   Loaded.
[20:21:19]  Loading plugin: MapAndreas.so
[20:21:19]   Loaded.
[20:21:19]  Loaded 5 plugins.

[20:21:19] 
[20:21:19] Filterscripts
[20:21:19] ---------------
[20:21:19]   Loading filterscript 'yom_buttons.amx'...
It just stopped there and my server did not run
Reply
#23

The server log you posted shows that it stops when loading the plugins so the script has not started yet. Load crashdetect plugin first and update sscanf: https://github.com/maddinat0r/sscanf
Re-compile your script, re-upload and start the server. Post the new logs.
Reply
#24

Quote:
Originally Posted by Konstantinos
View Post
The server log you posted shows that it stops when loading the plugins so the script has not started yet. Load crashdetect plugin first and update sscanf: https://github.com/maddinat0r/sscanf
Re-compile your script, re-upload and start the server. Post the new logs.
I'll do it sir. Btw sir, the server log that I've posted shows that it stops when loading the "filterscripts"
Reply
#25

Note: There is no problem when I run the server thru localhost because it will start, but when I run it via putty and checked the server logs, the server will not run and based on the server logs it will stop loading yom_buttons on filterscript.

I updated the sscanf and recompiled my script, transferred the gamemode using FTP and I run the server via putty.
Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[22:05:14] 
[22:05:14] Server Plugins
[22:05:14] --------------
[22:05:14]  Loading plugin: audio.so
[22:05:14] 

*** Audio Plugin v0.5 by Incognito loaded ***

[22:05:14]   Loaded.
[22:05:14]  Loading plugin: sscanf.so
[22:05:14] 

[22:05:14]  ===============================

[22:05:14]       sscanf plugin loaded.     

[22:05:14]    © 2009 Alex "Y_Less" Cole

[22:05:14]    0.3d-R2 500 Players "dnee"

[22:05:14]  ===============================

[22:05:14]   Loaded.
[22:05:14]  Loading plugin: streamer.so
[22:05:14] 

*** Streamer Plugin v2.7.8 by Incognito loaded ***

[22:05:14]   Loaded.
[22:05:14]  Loading plugin: Whirlpool.so
[22:05:14]  
[22:05:14]  ==================
[22:05:14]  
[22:05:14]   Whirlpool loaded
[22:05:14]  
[22:05:14]  ==================
[22:05:14]  
[22:05:14]   Loaded.
[22:05:14]  Loading plugin: MapAndreas.so
[22:05:14]   Loaded.
[22:05:14]  Loaded 5 plugins.

[22:05:15] 
[22:05:15] Filterscripts
[22:05:15] ---------------
[22:05:15]   Loading filterscript 'yom_buttons.amx'...
Reply
#26

Erm, you didn't load crashdetect plugin and you didn't updated sscanf.so as well.
Reply
#27

Quote:
Originally Posted by Konstantinos
View Post
Erm, you didn't load crashdetect plugin and you didn't updated sscanf.so as well.
Oops I forgot. The link that you gave to me doesn't have sscanf.so, So I thought it was the sscanf2.inc then I recompiled it. Could you please give me another link of sscanf.so plugin?
Reply
#28

It's the linux version: https://github.com/maddinat0r/sscanf...2-linux.tar.gz
Reply
#29

Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[22:42:51] 
[22:42:51] Server Plugins
[22:42:51] --------------
[22:42:51]  Loading plugin: audio.so
[22:42:51] 

*** Audio Plugin v0.5 by Incognito loaded ***

[22:42:51]   Loaded.
[22:42:51]  Loading plugin: sscanf.so
[22:42:51] 

[22:42:51]  ===============================

[22:42:51]       sscanf plugin loaded.     

[22:42:51]          Version:  2.8.2        

[22:42:51]    © 2012 Alex "Y_Less" Cole  

[22:42:51]  ===============================

[22:42:51]   Loaded.
[22:42:51]  Loading plugin: streamer.so
[22:42:51] 

*** Streamer Plugin v2.7.8 by Incognito loaded ***

[22:42:51]   Loaded.
[22:42:51]  Loading plugin: Whirlpool.so
[22:42:51]  
[22:42:51]  ==================
[22:42:51]  
[22:42:51]   Whirlpool loaded
[22:42:51]  
[22:42:51]  ==================
[22:42:51]  
[22:42:51]   Loaded.
[22:42:51]  Loading plugin: MapAndreas.so
[22:42:51]   Loaded.
[22:42:51]
[22:42:51] ==================
[22:42:51] Loading plugin: crashdetect.so
[22:42:51]  Loaded.
[22:42:51]  Loaded 6 plugins.

[22:42:51] 
[22:42:51] Filterscripts
[22:42:51] ---------------
[22:42:51]   Loading filterscript 'yom_buttons.amx'...
Reply
#30

Even with crashdetect not printing anything is very weird. I searched for yom_buttons filterscript and I can only think of two things:

- The version of crashdetect you loaded is not the latest (assuming the message about being loaded before streamer also appears in Linux version).
- You didn't re-compile yom_buttons with the same version of streamer plugin.

Just to avoid things, please load crashdetect first of all the plugins.
Reply
#31

Quote:
Originally Posted by Konstantinos
View Post
Even with crashdetect not printing anything is very weird. I searched for yom_buttons filterscript and I can only think of two things:

- The version of crashdetect you loaded is not the latest (assuming the message about being loaded before streamer also appears in Linux version).
- You didn't re-compile yom_buttons with the same version of streamer plugin.

Just to avoid things, please load crashdetect first of all the plugins.
when I execute the command ./samp03svr it will say "SEGMENTATION FAULT"
Reply
#32

http://forum.sa-mp.com/showpost.php?...51&postcount=6

Also execute:
pawn Code:
nohup ./samp03svr &
to start the server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)