Server BROKEN!
#1

I'm sorry, my bad English.

Hello. So, run the server:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d-R2, ©2005-2011 SA-MP Team

[09:34:42] password = ""  (string)
[09:34:42] 
[09:34:42] Server Plugins
[09:34:42] --------------
[09:34:42]  Loading plugin: sscanf.so
[09:34:42] 

[09:34:42]  ===============================

[09:34:42]       sscanf plugin loaded.     

[09:34:42]    © 2009 Alex "******" Cole

[09:34:42]    0.3d-R2 800 Players "dnee"

[09:34:42]  ===============================

[09:34:42]   Loaded.
[09:34:42]  Loading plugin: streamer.so
[09:34:43] 

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

[09:34:43]   Loaded.
[09:34:43]  Loading plugin: mysql.so
[09:34:43]  SA:MP MySQL Plugin v2.1.1 Loaded.
[09:34:43]   Loaded.
[09:34:43]  Loaded 3 plugins.

[09:34:43] [MySQL] Thread running. Threadsafe: Yes.
[09:34:43] 
[09:34:43] Ban list
[09:34:43] --------
[09:34:43]  Loaded: samp.ban
[09:34:43] 
[09:34:43] 
[09:34:43] Filterscripts
[09:34:43] ---------------
[09:34:43]   Loading filterscript 'ferriswheel.amx'...
[09:34:43]   Loading filterscript 'td.amx'...
[09:34:43]   Loading filterscript '[MV]_Christmas1.2.amx'...
[09:34:43]   Loaded 3 filterscripts.

[09:34:43] 
MySQL: Bandoma prisijungti prie duomenu bazes.
[09:34:43] [MySQL] Connected (0) to '8007'@'s1.justhost.lt via TCP/IP'.
[09:34:43] [MySQL] Server Version 5.0.51a-24+lenny5.
[09:34:43] 
MySQL: Sekmingai prisijungta prie s1.justhost.lt (Vartotojas: 8007)

[09:34:43] Number of vehicle models: 161
Like everything good, but after some time, service-hang: whole show off, or connected to, but those players who were really on the server is offline, and show that they are still on the server.
And when you try to connect to the server when it is shown that even turned on, it does not fix.
How can this be?

By the way: when the server crashes, the file SERVER_LOGIN is no record.
Reply
#2

Ehm, could you somehow try to translate it?
-For me it LOOKS like it cannot connect to the mysql due' to wrong pass or username

(Again, I do not understand what it says)
Reply
#3

Hmmm, look my register system:

Код:
public OnPlayerConnect(playerid)
{
if(MySQLNameCheck ( PlayerName2( playerid ) ) > 0)
{
#if USE_DIALOGS == true
new lstring[128];
format(lstring,256,"{FF0000}%s {FFFFFF}neprisijunges, prasome prisijungti!:",pName(playerid));
ShowPlayerDialog(playerid,DIALOGID0+1,DIALOG_STYLE_INPUT,"{FFFFFF}Prisijungimas",lstring,"Prisijungti","Iseiti");
#endif
}
else
{

new lstring[128];
format(lstring,256,"{FF0000}%s {FFFFFF}nepriregistruotas!\n\n Prasome prisiregistruoti:",pName(playerid));
ShowPlayerDialog(playerid,DIALOGID0+2,DIALOG_STYLE_INPUT,"{FFFFFF}Registracija",lstring,"Registruotis","Iseiti");
return 1;
}
 return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOGID0+1)
	{
		if(response || !response)
		{
			if (PlayerInfo[playerid][LoggedIn] == 1) return SendClientMessage(playerid,red,"ACCOUNT: Jus priregistruotas ir prijungtas");
			if (MySQLNameCheck( PlayerName2( playerid ) ) < 0) return SendClientMessage(playerid,red,"ACCOUNT: Klaida. Acc neegzistuoja");
			if (strlen(inputtext) < 4 || strlen(inputtext) > 20)
			{
            new lstring[128];
			format(lstring,256,"{FF0000}%s {FFFFFF}neprisijunges, prasome prisijungti!:",pName(playerid));
			ShowPlayerDialog(playerid,DIALOGID0+1,DIALOG_STYLE_INPUT,"{FFFFFF}Prisijungimas",lstring,"Prisijungti","Iseiti");
			SendClientMessage(playerid,red,"ACCOUNT: Slaptazodi sudaro 4 - 20 simboliu");
			return true;
			}

			if (LoginPlayer(playerid,inputtext))
			{
PlayerInfo[playerid][LoggedIn] = 1;
PlayerInfo[playerid][Registered] = 1;
SendClientMessage(playerid, green, "ACCOUNT: Jus priregistruotas ir prijungtas");


	format(tut1, sizeof (tut1), "%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", tut4, tut5, tut6, tut7, tut8, tut9, tut10, tut11, tut12, tut13, tut14, tut15);

	ShowPlayerDialog(playerid, DIALOG_taisykles, DIALOG_STYLE_MSGBOX,"     {FF00FF}Taisyklлs",tut1,"Sutinku", "Nesutinku");

PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
			}
			else
			{
			    new lstring[ 128];
				format(lstring,128,"{FF0000}%s {FFFFFF}neprisijunges, prasome prisijungti!:",pName(playerid));
			    ShowPlayerDialog(playerid,DIALOGID0+1,DIALOG_STYLE_INPUT,"{FFFFFF}Prisijungimas",lstring,"Prisijungti","Iseiti");
			    SendClientMessage( playerid, red, "Neteisingas slaptazodis");
			}

		}
	}
if(dialogid == DIALOGID0+2)
{
	if(response || !response)
	{
		if (PlayerInfo[playerid][LoggedIn] == 1) return SendClientMessage(playerid,red,"ACCOUNT: Jus prisijungete");
		else if (strlen(inputtext) < 4 || strlen(inputtext) > 20 ) return SendClientMessage( playerid, red," Slaptazodzio ilgis nuo 4 iki 20 ");
		else if(MySQLNameCheck( PlayerName2( playerid ) ) > 0)  return SendClientMessage( playerid, red," Sis zaidejas jau sukurtas ");
		else
		{
		GetPlayerName(playerid,name,sizeof(name));
	   	new
  			query[       128      ],
			IP   [       50       ];

		GetPlayerIp(playerid, IP, 50);
		GetPlayerName( playerid, name , 28);

		format(query, 128, "INSERT INTO `players` (`Name`, `Password`, `IP`) VALUES ('%s', '%s', '%s')",name, inputtext, IP );
		mysql_query( query );

   		PlayerInfo[playerid][LoggedIn] = 1;
		PlayerInfo[playerid][Registered] = 1;

	    SendClientMessage(playerid, green, "ACCOUNT: Jus sekmingai uzregistruotas serverije.");


	format(tut1, sizeof (tut1), "%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", tut4, tut5, tut6, tut7, tut8, tut9, tut10, tut11, tut12, tut13, tut14, tut15);

	ShowPlayerDialog(playerid, DIALOG_taisykles, DIALOG_STYLE_MSGBOX,"     {FF00FF}Taisyklлs",tut1,"Sutinku", "Nesutinku");

		PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
		}
	}
}
retrun 1;
}
Reply
#4

Exactly what is your problem mate?
I dont really get it? Cant you register or?
Reply
#5

hmmm, registration and login, there is quite smooth.
Reply
#6

So?
What is the problem? Cant you register or?
Reply
#7

Heyyyyyyyyy! The server breaks when a new player joined.
Reply
#8

Oh, why didn't you just say so ?

-And there are NO error logs on this AT ALL?
Do you know if players reach the registration part or it crashes as SOON as the script begins to load for the player?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)