Server Shutdown randomly - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Shutdown randomly (
/showthread.php?tid=353947)
Server Shutdownafter i start it up -
Johnny_Robins - 25.06.2012
For some reason when i start my server it loads everything correctly and then just shuts down after startup. Could anyone help me on this
Server Log-
Код:
[00:20:06] Permanent vehicle 598 loaded. (Model ID: 8 | Faction: 61 | Colors: 1/)
[00:20:06] Permanent vehicle 598 loaded. (Model ID: 8 | Faction: 61 | Colors: 1/)
[00:20:06] Permanent/dealer vehicles loaded
[00:20:06] Trunks loaded
[00:20:06] __________________________________
[00:20:06] | |
[00:20:06] |Roleplay test |
[00:20:06] | |
[00:20:06] |__________________________________|
[00:20:06]
[00:20:06] Number of vehicle models: 70
[00:20:06] --- Server Shutting Down.
[00:20:06] *** Audio Plugin: Stopped TCP server on port 7777
[00:20:06]
*** Streamer Plugin v2.6.1 by Incognito unloaded ***
[00:20:06]
*** Audio Plugin v0.5 by Incognito unloaded ***
Re: Server Shutdown randomly -
ColorHost-Kevin - 25.06.2012
Did you run a crashdetect plugin?
Re: Server Shutdown randomly -
Johnny_Robins - 25.06.2012
No whats that?
Re: Server Shutdown randomly -
Johnny_Robins - 25.06.2012
With Crash detect plugin.
Код:
[00:35:00] __________________________________
[00:35:00] | |
[00:35:00] |LRoleplay |
[00:35:00] | |
[00:35:00] |__________________________________|
[00:35:00]
[00:35:00] Number of vehicle models: 70
[00:35:00] --- Server Shutting Down.
[00:35:00] *** Audio Plugin: Stopped TCP server on port 7777
[00:35:00] [debug] Run time error 4: "Array index out of bounds"
[00:35:00] [debug] Accessing element at index 129 past array upper bound 128
[00:35:00] [debug] AMX backtrace:
[00:35:00] [debug] #0 000eeed8 in public OnGameModeExit () from RP.amx
[00:35:00]
*** Streamer Plugin v2.6.1 by Incognito unloaded ***
[00:35:00]
*** Audio Plugin v0.5 by Incognito unloaded ***
EDIT: By the Way this just started happening when I converted it from Linux to Windows Server.
Re: Server Shutdown randomly -
Johnny_Robins - 25.06.2012
Here is whats under Public OnGameModeExit() for the runtime errors.
Код:
public OnGameModeExit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SaveVehicleKeys(i);
}
for(new v = 1; v < MAX_VEHICLES; v++)
{
if(VehicleEnum[v][veh_owned])
{
SaveVehicle(v);
ResetEnumVar(v);
DestroyVehicle(v);
}
}
DestroyPickup(DealershipPickup);
DestroyPickup(ScrapPickup);
DestroyPickup(NeonPickup);
Delete3DTextLabel(DealershipLabel);
Delete3DTextLabel(ScrapLabel);
Delete3DTextLabel(NeonLabel);
djson_GameModeExit();
Delete3DTextLabel(CasinoNameDynamic3DText);
Delete3DTextLabel(CasinoEnterDynamic3DText);
Elevator_Destroy();
Audio_DestroyTCPServer();
for(new i = 0; i < 130; i++)
{
TextDrawHideForAll(Mod_Shop_Color_Menu[i]);
TextDrawDestroy(Mod_Shop_Color_Menu[i]);
}
TextDrawHideForAll(LoginTextdraws[0]);
TextDrawDestroy(LoginTextdraws[0]);
TextDrawHideForAll(LoginTextdraws[1]);
TextDrawDestroy(LoginTextdraws[1]);
return 1;
}
Re: Server Shutdown randomly -
Dubya - 25.06.2012
Try this:
pawn Код:
public OnGameModeExit()
{
for(i=0;i<MAX_PLAYERS;i++)
{
SaveVehicleKeys(i);
}
for(v=1;v<MAX_PLAYERS;v++)
{
if(VehicleEnum[v][veh_owned])
{
SaveVehicle(v);
ResetEnumVar(v);
DestroyVehicle(v);
}
}
DestroyPickup(DealershipPickup);
DestroyPickup(ScrapPickup);
DestroyPickup(NeonPickup);
Delete3DTextLabel(DealershipLabel);
Delete3DTextLabel(ScrapLabel);
Delete3DTextLabel(NeonLabel);
djson_GameModeExit();
Delete3DTextLabel(CasinoNameDynamic3DText);
Delete3DTextLabel(CasinoEnterDynamic3DText);
Elevator_Destroy();
Audio_DestroyTCPServer();
for(i= 0;i<130;i++)
{
TextDrawHideForAll(Mod_Shop_Color_Menu[i]);
TextDrawDestroy(Mod_Shop_Color_Menu[i]);
}
TextDrawHideForAll(LoginTextdraws[0]);
TextDrawDestroy(LoginTextdraws[0]);
TextDrawHideForAll(LoginTextdraws[1]);
TextDrawDestroy(LoginTextdraws[1]);
return 1;
}
Re: Server Shutdown randomly -
Johnny_Robins - 25.06.2012
HELP!
I did what Dubya did and came up with errors.
Код:
C:\Users\***\Desktop\*** Custom\gamemodes\***.pwn(23332) : error 017: undefined symbol "i"
C:\Users\***\Desktop\*** Custom\gamemodes\***.pwn(23332) : warning 205: redundant code: constant expression is zero
C:\Users\***\Desktop\*** Custom\gamemodes\***.pwn(23332) : error 017: undefined symbol "i"
C:\Users\***\Desktop\*** Custom\gamemodes\***.pwn(23332) : warning 215: expression has no effect
C:\Users\***\Desktop\*** Custom\gamemodes\***.pwn(23332) : error 001: expected token: ")", but found ";"
C:\Users\***\Desktop\*** Custom\gamemodes\***.pwn(23332) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Server Shutdown randomly -
Lordzy - 25.06.2012
Try adding other gamemodes and see if the problem stopped or not.
If stopped it's your gm problem.
If still problem its your host probelm.
Re: Server Shutdown randomly -
Johnny_Robins - 25.06.2012
Yes other gamemodes work.