SA-MP Forums Archive
server shuts down - 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 shuts down (/showthread.php?tid=348788)



server shuts down - thefatshizms - 06.06.2012

hi my server randomly shuts down (the console closes ) how i fix?


Re: server shuts down - Smokkr - 06.06.2012

Maybe download 0.3e Windows/Linux Server and replace again the Gamemode,Pawno,Scriptfiles and Filterscript folders and try again.


Re: server shuts down - thefatshizms - 06.06.2012

ive got 0.3e i dont think its that maybe my filterscript :/

pawn Код:
CMD:setadmin(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))return 0;
    if(sscanf(params,"ui",ID,levels)) return SendClientMessage(playerid,0xFF9900AA, "USAGE: /setadmin [ID] [Level 1-4]");//it will show this if you dont use the format properly
    if(levels > 6) return SendClientMessage(playerid,0xFF0000FF,"LEVELS AVAILABLE 1-6!");//Available levels
    if(!IsPlayerConnected(ID))return SendClientMessage(playerid,-1,"That user is not connected.");//Detect if the id/partofname is connected
    if(PlayerData[ID][AdminLevel] == levels) return SendClientMessage(playerid,0xFF0000FF, "ERROR: That person is already this admin level!");//Detect if the guy is already the level you setted
    GetPlayerName(playerid,Nam, MAX_PLAYER_NAME);//define the playerid name
    GetPlayerName(ID,pname,MAX_PLAYER_NAME);//define the other person name
    if(levels == 0)
    {
        format(str, sizeof(str),"%s has your Admin level to %d on the server.",Nam,levels);
        SendClientMessage(ID,0xFF9900AA,str);
        format(str, sizeof(str),"You had set %s Admin level to %d!",pname,levels);
        SendClientMessage(playerid,0xFF9900AA,str);
        PlayerData[ID][AdminLevel] = levels;//this sets the player level
        return 1;
    }
    format(str, sizeof(str),"%s has your Admin level to %d on the server.",Nam,levels);
    SendClientMessage(ID,0xFF9900AA,str);
    format(str, sizeof(str),"You had set %s Admin level to %d!",pname,levels);
    SendClientMessage(playerid,0xFF9900AA,str);
    PlayerData[ID][AdminLevel] = levels;
    return 1;
}
CMD:givecar(playerid,params[])
{
    new vehid;
    new id;
    new str[128];
    new Float:X, Float:Y, Float:Z, Float:angle;
    if(sscanf(params,"du",vehid, id)) return SendClientMessage(playerid,-1,"Error: - /givecar [vehid] [player id]");
    GetPlayerPos(id, X, Y, Z);
    GetPlayerFacingAngle(id, angle);
    CreateVehicle(vehid, X, Y, Z, angle, 0, 1, -1);
    PutPlayerInVehicle(id, vehid, 0);
    format(str,sizeof(str),"%s has given you a vehicle", GetPlayerName(playerid));
    SendClientMessage(playerid, -1, str);
    return 1;
}
CMD:goto(playerid, params[])
{
    new id;
    new Float:X, Float:Y, Float:Z;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE: /goto [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    GetPlayerPos(id, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z);
    return 1;
}
CMD:explode(playerid, params[])
{
    new id;
    new Float:X, Float:Y, Float:Z;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE: /explode [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    GetPlayerPos(id, X, Y, Z);
    CreateExplosion(X, Y, Z, 2, 10.0);
    return 1;
}
CMD:setskin(playerid, params[])
{
    new id;
    new skinid;
    if(sscanf(params,"du",skinid, id)) return SendClientMessage(playerid,-1,"Error: - /setskin [skinid] [player id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    SetPlayerSkin(id, skinid);
    return 1;
}
CMD:killhim(playerid, params[])
{
    new id;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE: /killhim [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    SetPlayerHealth(id, 0);
    return 1;
}
CMD:godmode(playerid, params[])
{
    SetPlayerHealth(playerid, 100000);
    return 1;
}
CMD:fix(playerid, params[])
{
    new id;
    new currentveh;
    currentveh = GetPlayerVehicleID(id);
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE;/fix [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
    SetVehicleHealth(currentveh, 1000.0);
    return 1;
}
stock ReturnPlayerName(playerid)
{
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof (pname));
    return pname;
}
#endif



Re: server shuts down - Faisal_khan - 06.06.2012

remove #endif and #if DEFINED Filterscript.


Re: server shuts down - thefatshizms - 06.06.2012

still does it


Re: server shuts down - InfinityCOD - 06.06.2012

Can you please show your server logs


Re: server shuts down - thefatshizms - 06.06.2012

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

SA-MP Dedicated Server
----------------------
v0.3e, ©2005-2012 SA-MP Team

[20:09:20]
[20:09:20] Server Plugins
[20:09:20] --------------
[20:09:20] Loading plugin: streamer
[20:09:22]

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

[20:09:22] Loaded.
[20:09:22] Loading plugin: sscanf
[20:09:23]

[20:09:23] ===============================

[20:09:23] sscanf plugin loaded.

[20:09:23] © 2009 Alex "******" Cole

[20:09:23] 0.3d-R2 500 Players "dnee"

[20:09:23] ===============================

[20:09:23] Loaded.
[20:09:23] Loaded 2 plugins.

[20:09:24]
[20:09:24] Filterscripts
[20:09:24] ---------------
[20:09:24] Loading filterscript 'Event_Fs.amx'...
[20:09:25] OnFilter
[20:09:25]
--------------------------------------
[20:09:25] ***************************************
[20:09:25] * Admin Filterscript by thefatshizms *
[20:09:25] ***************************************
[20:09:25] --------------------------------------

[20:09:25] Loaded 1 filterscripts.

[20:09:25] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[20:09:25] OnGameo
[20:09:25]
----------------------------------
[20:09:25] Bare Script

[20:09:25] ----------------------------------

[20:09:25] Number of vehicle models: 0
[20:11:10] Incoming connection: 77.127.255.55:64867
[20:11:11] [join] [Sfcnr]Ma2ter has joined the server (0:77.127.255.55)
[20:11:44] [part] [Sfcnr]Ma2ter has left the server (0:1)


Re: server shuts down - Faisal_khan - 07.06.2012

Show your OnPlayerConnect. What saving system you use?


Re: server shuts down - thefatshizms - 07.06.2012

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
Show your OnPlayerConnect. What saving system you use?
i have nothing in onplayerconnect and not using any saving system


Re: server shuts down - Mauzen - 07.06.2012

Use the crashdetect plugin.