Server Stop working?
#1

Hello there, I were editing a new gamemode to host.actually this is my old gm ... ppc trucking edit but today idk why when i open server.exe/or host and when a player connect/i connect to the server the server gose to offline/automatic close the server.exe. but there is no errors in gamemode/pawno. also i have updated all the plugins,sscanf and streamer. Server log:
Код:
*** Streamer Plugin v2.6.1 by Incognito loaded ***

[10:08:46]   Loaded.
[10:08:46]  Loading plugin: sscanf
[10:08:46] 

[10:08:46]  ===============================

[10:08:46]       sscanf plugin loaded.     

[10:08:46]          Version:  2.8.1        

[10:08:46]    © 2012 Alex "******" Cole  

[10:08:46]  ===============================

[10:08:46]   Loaded.
[10:08:46]  Loaded 2 plugins.

[10:08:46] 
[10:08:46] Filterscripts
[10:08:46] ---------------
[10:08:46]   Loading filterscript 'messages.amx'...
[10:08:46] <|---------------------------[Loaded]---------------------------|>
[10:08:46]  | Simple Random Messages System v2.0 Made By: SAMProductions |
[10:08:46] <|---------------------------[Loaded]---------------------------|>
[10:08:46]   Loaded 1 filterscripts.

[10:08:46] Debug information
[10:08:46] -------------------------------------
[10:08:46] Last vehicle ID: 290
[10:08:46] Last object ID: 18
[10:08:46] Loaded 4 houses
[10:08:46] Loaded 128 businesses
[10:08:46] Loaded 0 speed-camera's
[10:08:46] -------------------------------------
[10:08:46] Houses that have been fixed: 0
[10:08:46] 
----------------------------------
[10:08:46] .: 18 Wheels Of Trucking :.
[10:08:46] ----------------------------------

[10:08:46] Number of vehicle models: 25
[10:09:08] Incoming connection: 10.128.173.173:2231
[10:09:09] [join] Tuntun has joined the server (0:10.128.173.173)
Server cfg:
Код:
echo Executing Server Config...
lanmode 0
rcon_password youdon'tneedtoknow.
hostname  .: 18 Wheels of Trucking :.
gamemode0 18WoS 1
filterscripts messages
plugins streamer sscanf
announce 0
query 1
weburl www.********.com/18WoSS
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 1
logtimeformat [%H:%M:%S]
port 7777
maxplayers 30
Reply
#2

It's probably a crash - something in OnPlayerConnect I assume. We'll figure it out, but you'll need to do the following first:

Load crashdetect plugin and compile with debug info. For the debug info, you'll need to goto pawno folder and create a file pawn.cfg
Open it and write in it:
pawn Код:
-d3
Save it and re-compile your scripts. Run the server, connect and if it goes offline again, check the server log. If it printed anything, post it here.
Reply
#3

Lol there were no errors but when i did like what you said i got 2 errors in my gamemode.

D:\18WoS\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
D:\18WoS\pawno\include\streamer.inc(313) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
D:\18WoS\pawno\include\streamer.inc(336) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
D:\18WoS\pawno\include\streamer.inc(33 : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#4

On Problem #1 :-
D:\18WoS\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"

I think it must have,
Код:
native SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
On Problem #2 :-
D:\18WoS\pawno\include\streamer.inc(313) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")

This,
Код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
Must have,
Код:
forward Streamer_OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ);
It Must be Like This,
Код:
forward Streamer_OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ);
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
On Problem #3 :-
D:\18WoS\pawno\include\streamer.inc(336) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")

This,
Код:
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
Must have,
Код:
forward Streamer_OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ);
It Must be Like This,
Код:
forward Streamer_OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ);
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
On Problem #4 :-
D:\18WoS\pawno\include\streamer.inc( 338 ) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"

On OnPlayerSelectObject Callback;
Try This,
pawn Код:
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
{
    if (type == SELECT_OBJECT_PLAYER_OBJECT)
    {
        Streamer_CallbackHook(STREAMER_OPSO, playerid, type, objectid, modelid, fX, fY, fZ);
    }
    if (Streamer_g_OPSO)
    {
        return CallLocalFunction("Streamer_OnPlayerSelectObject", "ddddfff", playerid, type, objectid, modelid, fX, fY, fZ);
    }
    return 1;
}
On Problem #1 and #4 :-
Try updating your streamer.inc,

First of all,

Streamer Plugin & Include:
[Plugin] Streamer Plugin
****** Project Download Page for Streamer Plugin
Pastebin for Streamer Include

Check your "PAWNO > includes" Directory, and Look for "streamer.inc",

and Check your "Plugins" Directory, and Look for "streamer.dll" or "streamer.so",

If you don't have "streamer.inc" and "streamer.dll" or "streamer.so",

(NOTE: Make sure you open the same PAWNO that contains all your stuff)

Download it here,

[Plugin] Streamer Plugin
****** Project Download Page for Streamer Plugin
Pastebin for Streamer Include

Installation:
  1. Copy the Plugin File plugins.
  2. Open server.cfg and add the plugin's name on plugins line.
and/or
  1. Copy the whole include codes in Notepad, Wordpad, etc..
  2. Save it as "include's name.inc", and Save it in "PAWNO > include".
  3. Open your Gamemode Script using PAWNO Compiler.
  4. Add "#include <include's name>" at the Top of your Gamemode Script.
  5. Compile it, Save it, and Finish.
and/or
  1. Download the Include File, Copy it.
  2. Paste it in "PAWNO > include".
  3. Open your Gamemode Script using PAWNO Compiler.
  4. Add "#include <include's name>" at the Top of your Gamemode Script.
  5. Compile it, Save it, and Finish.
Reply
#5

Can you fix it whole? i mean you give me step by step lines for pawno. it will be good for me if you give me it in ready.. i mean..
Reply
#6

Got errors:
Код:
D:\18WoS\gamemodes\18WoS.pwn(1563) : error 021: symbol already defined: "SetDynamicObjectMaterialText"
D:\18WoS\gamemodes\18WoS.pwn(1565) : error 029: invalid expression, assumed zero
D:\18WoS\gamemodes\18WoS.pwn(1565) : error 021: symbol already defined: "Streamer_OnPlayerEditObject"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
I added those lines , end of the gamemode/pawno.
native SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
forward Streamer_OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ);
Reply
#7

Quote:
Originally Posted by Tuntun
Посмотреть сообщение
Lol there were no errors but when i did like what you said i got 2 errors in my gamemode.

D:\18WoS\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
D:\18WoS\pawno\include\streamer.inc(313) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
D:\18WoS\pawno\include\streamer.inc(336) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
D:\18WoS\pawno\include\streamer.inc(33 : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Just update streamer.inc to the latest version.
Reply
#8

Yeah i did... and got those errors:

Код:
D:\18WoS\gamemodes\18WoS.pwn(1563) : error 021: symbol already defined: "SetDynamicObjectMaterialText"
D:\18WoS\gamemodes\18WoS.pwn(1565) : error 029: invalid expression, assumed zero
D:\18WoS\gamemodes\18WoS.pwn(1565) : error 021: symbol already defined: "Streamer_OnPlayerEditObject"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.


If download link is this:
https://code.******.com/p/samp-strea...downloads/list

Edited: After i deleted this codes:
Код:
native SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
forward Streamer_OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ);
All errors are removed. but still when i join the server it makes crashes.
If you want than i can give you my whole files.
Reply
#9

Maybe you already defined "SetDynamicObjectMaterialText" and "Streamer_OnPlayerEditObject", you will only define it once not twice

Try using crashdetect Plugin, it will help you to see your Problem;

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It's probably a crash - something in OnPlayerConnect I assume. We'll figure it out, but you'll need to do the following first:

Load crashdetect plugin and compile with debug info. For the debug info, you'll need to goto pawno folder and create a file pawn.cfg
Open it and write in it:
pawn Код:
-d3
Save it and re-compile your scripts. Run the server, connect and if it goes offline again, check the server log. If it printed anything, post it here.
and

You'll need to Update your Streamer Plugins & Include;

Streamer Plugin & Include:
[Plugin] Streamer Plugin
****** Project Download Page for Streamer Plugin
Pastebin for Streamer Include

Check your "PAWNO > includes" Directory, and Look for "streamer.inc",

and Check your "Plugins" Directory, and Look for "streamer.dll" or "streamer.so",

If you don't have "streamer.inc" and "streamer.dll" or "streamer.so",

(NOTE: Make sure you open the same PAWNO that contains all your stuff)

Download it here,

[Plugin] Streamer Plugin
****** Project Download Page for Streamer Plugin
Pastebin for Streamer Include

Installation:
  1. Copy the Plugin File plugins.
  2. Open server.cfg and add the plugin's name on plugins line.
and/or
  1. Copy the whole include codes in Notepad, Wordpad, etc..
  2. Save it as "include's name.inc", and Save it in "PAWNO > include".
  3. Open your Gamemode Script using PAWNO Compiler.
  4. Add "#include <include's name>" at the Top of your Gamemode Script.
  5. Compile it, Save it, and Finish.
and/or
  1. Download the Include File, Copy it.
  2. Paste it in "PAWNO > include".
  3. Open your Gamemode Script using PAWNO Compiler.
  4. Add "#include <include's name>" at the Top of your Gamemode Script.
  5. Compile it, Save it, and Finish.
Reply
#10

Did it print anything to the server log (assuming you've loaded the crashdetect plugin like I told you)?

If yes, then post the results.
If not, you can show us the OnPlayerConnect if it crashes when a player joins.

PS: Are you sure all the folders (if needed) were created in scriptfiles?


EDIT:

Quote:
Originally Posted by SAMProductions
Посмотреть сообщение
Try using crashdetect Plugin, it will help you to see your Problem;

First of all,

Crash Detect Plugin & Include:
GitHub for Crash Detect Plugin

Check your "PAWNO > includes" Directory, and Look for "crashdetect.inc",

and Check your "Plugins" Directory, and Look for "crashdetect.dll" or "crashdetect.so",

If you don't have "crashdetect.inc" or "crashdetect.dll" or "crashdetect.so",

(NOTE: Make sure you open the same PAWNO that contains all your stuff)

Download it here,

GitHub for Crash Detect Plugin

Installation:
  1. Copy the Plugin File plugins.
  2. Open server.cfg and add the plugin's name on plugins line.
and/or
  1. Copy the whole include codes in Notepad, Wordpad, etc..
  2. Save it as "include's name.inc", and Save it in "PAWNO > include".
  3. Open your Gamemode Script using PAWNO Compiler.
  4. Add "#include <include's name>" at the Top of your Gamemode Script.
  5. Compile it, Save it, and Finish.
and/or
  1. Download the Include File, Copy it.
  2. Paste it in "PAWNO > include".
  3. Open your Gamemode Script using PAWNO Compiler.
  4. Add "#include <include's name>" at the Top of your Gamemode Script.
  5. Compile it, Save it, and Finish.
* Load Crash Detect Plugin and Compile it using Debug Info (Open PAWNO Folder Directory and Create a Configuration File named "pawn.cfg")

Open the Configuration File and Add This Line :-
Код:
-d3
Save it and re-compile your scripts. Run the server, connect and if it goes offline again, check the server log. If it printed anything, post it here.

Save it, and then Re-Compile all of your Scripts;

Run your Server, and Connect;

If it crash or restart again, Check your Server Log;

Then write the Problem which is crashing your Server.
crashdetect.inc is not needed to be included to the script if it's not used.

And I already posted what you said to my first post above, let's not say the same things again and again.

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It's probably a crash - something in OnPlayerConnect I assume. We'll figure it out, but you'll need to do the following first:

Load crashdetect plugin and compile with debug info. For the debug info, you'll need to goto pawno folder and create a file pawn.cfg
Open it and write in it:
pawn Код:
-d3
Save it and re-compile your scripts. Run the server, connect and if it goes offline again, check the server log. If it printed anything, post it here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)