SA-MP Forums Archive
Little help - 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: Little help (/showthread.php?tid=449294)



Little help - SounDD - 08.07.2013

Hi,I have a problem with my server.When I connect to the server, it restarts.
Server_log:
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[22:53:12] Error: Your password must be changed from the default password, please change it.

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

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[22:53:25] 
[22:53:25] Server Plugins
[22:53:25] --------------
[22:53:25]  Loaded 0 plugins.

[22:53:25] 
[22:53:25] Filterscripts
[22:53:25] ---------------
[22:53:25]   Loading filterscript 'antiflood.amx'...
[22:53:25] 
Loading flood protection - http://code.******.com/p/samp-anticheat

[22:53:25]   Loading filterscript 'BuyVip.amx'...
[22:53:25]   Loading filterscript 'Ganguri.amx'...
[22:53:25] 
--------------------------------------
[22:53:25]       Advanced Gangs System by Darky    
[22:53:25] --------------------------------------

[22:53:25]   Loading filterscript 'House.amx'...
[22:53:25]   Loading filterscript 'ladmin4v2.amx'...
[22:53:25]   Loading filterscript 'v.amx'...
[22:53:25]    * vDialog version 0.2a loaded *		
[22:53:25]   Loading filterscript 'Xstreamo.amx'...
[22:53:25]   Loaded 7 filterscripts.

[22:53:25] 
----------------------------------
[22:53:25]  RNG loaded successfully.
[22:53:25] ----------------------------------

[22:53:25] Number of vehicle models: 146
[22:54:05] Incoming connection: 127.0.0.1:2168
[22:54:05] [join] Hazzard has joined the server (0:127.0.0.1)
I do not understand why they reboot...


Re: Little help - Jstylezzz - 08.07.2013

This is probably a problem in your script. My guess is that it occurs under OnPlayerConnect. If you can post your OnPlayerConnect, between pawn tags, we can help a little better.


Re: Little help - SounDD - 08.07.2013

pawn Код:
public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s has joined the server.Welcome!",pName);
    SendClientMessageToAll(0xFFFFFFaa,string);
   
    SendClientMessage(playerid,0xFFFFFFAA, "{FFFFFF}Welcome to {007FFF}Romania {F3FF02}New {F81414}Generation{FFFFFF}, for more please type {F3FF02}/help");
    SendClientMessage(playerid,0xFFFF00AA,"{FFFFFF}Use {12FFFF}/house {FFFFFF}to find information on our houses");
    SendClientMessage(playerid, 0xF97804AA,"{FFFFFF}Type {F3FF02}/cmds {FFFFFF}for all commands!");
    SendClientMessage(playerid, 0xCECECEFF,"{FFFFFF}Type {F3FF02}/teles {FFFFFF}to see teleportation on the server");
    SendClientMessage(playerid, 0xCECECEFF,"{FFFFFF}If you need a vehicle type {12FFFF}/V {FFFFFF}and if you want to tune cars write {F3FF02}/tune");
    return 1;
}



Re: Little help - Jstylezzz - 08.07.2013

By the looks of this code, nothing should be wrong with OnPlayerConnect. The thing you can try though, is using the crashdetect plugin. It will print more info in the log, which will make it easier to narrow down the issue.

Crashdetect thread