Server random restarts
#1

So i have copied the log. As you can see everything is fine but for some reason the server allows me to go to the main password screen, i type in my password then boom the servers down.

----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team
[20:10:19]
[20:10:19] Server Plugins
[20:10:19] --------------
[20:10:19] Loading plugin: mysql
[20:10:19]
> MySQL plugin R5 successfully loaded.
[20:10:19] Loaded.
[20:10:19] Loading plugin: streamer
[20:10:19]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[20:10:19] Loaded.
[20:10:19] Loaded 2 plugins.
[20:10:19]
[20:10:19] Filterscripts
[20:10:19] ---------------
[20:10:19] Loaded 0 filterscripts.
[20:10:19] *** Streamer Plugin: Include file version (0x26105) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
[20:10:19] [MYSQL]: Loading bans from MYSQL (from samp).
[20:10:19] [MYSQL]: Bans loaded from MYSQL (from samp).
[20:10:19] [MYSQL]: Loading houses from MYSQL (from samp).
[20:10:19] [MYSQL]: Houses loaded from MYSQL (from samp).
[20:10:19] [MYSQL]: Loading businesses from MYSQL (from samp).
[20:10:19] [MYSQL]: Businesses loaded from MYSQL (from samp).
[20:10:19] [MYSQL]: Loading sbusinesses from MYSQL (from samp).
[20:10:19] [MYSQL]: SBusinesses loaded from MYSQL (from samp).
[20:10:19] Loading trunk info
[20:10:20] Trunk info loaded.
[20:10:20] Loading IRC channels
[20:10:20] IRC channels loaded.
[20:10:20] Loading dropped items, this can take a while, please wait...
[20:10:20] Dropped items loaded.
[20:10:20] [MYSQL]: Loading furn from MYSQL (from samp).
[20:10:20] [MYSQL]: Furn loaded from MYSQL (from samp).
[20:10:20] Loading skins from mysql.
[20:10:20] Skins loaded from mysql.
[20:10:20] Default Weather: 0
[20:10:20] LSL-RP
[20:10:20] Number of vehicle models: 53
[20:10:57] Incoming connection: 101.175.132.197:55705
[20:10:58] [join] Leighton_Allan has joined the server (0:101.175.132.197)
[20:11:12] [part] Leighton_Allan has left the server (0:0)
If i join it automatically closes and says i left.

Check it out -
HostName: New Gaming Role Play
Address: 101.175.132.197:7777
Players: 0 / 500
Ping: 17
Mode: LSL RP v5.0a
Map: Los Santos
Reply
#2

hmmm

pawn Код:
[20:11:12] [part] Leighton_Allan has left the server (0:0)
its a time out error, possibly something in your OnPlayerConnect part of your gamemode?
Reply
#3

Quote:
Originally Posted by Donvalley
Посмотреть сообщение
hmmm

pawn Код:
[20:11:12] [part] Leighton_Allan has left the server (0:0)
its a time out error, possibly something in your OnPlayerConnect part of your gamemode?
}

public OnPlayerConnect(playerid)
{
TabbedPlayer[playerid] = 0;
new plname[MAX_PLAYER_NAME],tmpvar;
GetPlayerName(playerid, plname, sizeof(plname));

LoggedTime[playerid] = 0;
new string[128];
gPlayerLogged[playerid] = 0;
gAdminLogged[playerid] = 0;
if(!NameIsRP(plname))
{
SendClientMessage(playerid, COLOR_YELLOW2, "Server: Your name is not acceptable.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Hint: your name must be in the format Firstname_Lastname.");
Kick(playerid); //yes, use Kick here because theres no data to save
return 1;
}
if(IsIPBanned(playerid)) {
if((BanInfo[tmpvar][BanInfoTS]-GetUnixTime())!=0) {
SendClientMessage(playerid,COLOR_YELLOW2,"You are currently banned. Please wait for this to expire");
SendClientMessage(playerid,COLOR_LIGHTRED,"If you feel this is a mistake post a appeal on lsl-rp.org");
tmpvar=PlayerInfo[playerid][pRank]; //just a reused variable
new numdays=(BanInfo[tmpvar][BanInfoTS]-GetUnixTime())/86400;
format(string,sizeof(string),"Your ban expires in %i day(s). Ban Reason: %s",numdays,BanInfo[tmpvar][BanInfoReason]);//just reused variables
SendClientMessage(playerid,COLOR_LIGHTRED,string);
Kick(playerid); //don't ban because if it expires they will be banned..
}
}
PlayerInfo[playerid][pCalledTutSay]=0;//this must be outside initplayer
InitPlayer(playerid);
SetPlayerColor(playerid,COLOR_GRAD2);
foreach (Player, i)
{
if(BlockPMPerson[playerid][i] == 1)
{
BlockPMPerson[playerid][i] = 0;
}
}

new icons = 0;

for(new h = 0; h < sizeof(IntInfo); h++)
{
if(IntInfo[h][iIcon] != 0)
{
SetPlayerMapIcon(playerid, icons, IntInfo[h][iEntrancex], IntInfo[h][iEntrancey], IntInfo[h][iEntrancez], IntInfo[h][iIconT], COLOR_YELLOW);
icons++;
}
}

/*SetPlayerMapIcon(playerid, icons, 1641.5096,-2241.4404,13.4949, 38, COLOR_YELLOW); // Spawn Point
icons++;*/
SetPlayerMapIcon(playerid, icons, 1663.6772,-2328.8713,5.2622, 38, COLOR_YELLOW); // Spawn Point
icons++;
SetPlayerMapIcon(playerid, icons, 978.6165,-1255.9263,16.9510, 27, COLOR_YELLOW); // Modshop
icons++;
SetPlayerMapIcon(playerid, icons, 1041.3632,-1028.2789,32.1016, 27, COLOR_YELLOW); // Modshop
icons++;
SetPlayerMapIcon(playerid, icons, 2645.3433,-2038.6853,13.5500, 27, COLOR_YELLOW); // Modshop
icons++;
SetPlayerMapIcon(playerid, icons, 1573.5973,-2351.7605,13.5547, 55, COLOR_YELLOW); // Portcar
icons++;

new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(AccountExists(sendername))
{
gPlayerAccount[playerid] = 1;
}
else
{
gPlayerAccount[playerid] = 0;
}
/*new Query[200], escpname[24];
mysql_real_escape_string(sendername, escpname);
format(Query, sizeof(Query), "SELECT * FROM `Players` WHERE `Name` = '%s'", escpname);
mysql_query_ex(Query);
mysql_store_result();
if(mysql_num_rows() != 0) //If the user is found
{
gPlayerAccount[playerid] = 1;
}
else
{
gPlayerAccount[playerid] = 0;
}*/
/*format(string, sizeof(string), "users/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
gPlayerAccount[playerid] = 1;
fclose(hFile);
}
else
{
gPlayerAccount[playerid] = 0;
}*/
ShootingWithSniper[playerid] = false;
LastSniperShot[playerid] = GetTickCount();
return 1;
}

forward AccountExists(Name[]);
public AccountExists(Name[])
{
new Query[200], escpname[24];
mysql_real_escape_string(Name, escpname);
format(Query, sizeof(Query), "SELECT `ID` FROM `Players` WHERE `Name` = '%s'", escpname);
mysql_query_ex(Query);
mysql_store_result();
if(mysql_num_rows() != 0) //If the user is found
{
mysql_free_result();
return true;
}
else
{
mysql_free_result();
return false;
}
}

forward AdminAccountExists(Name[]);
public AdminAccountExists(Name[])
{
new Query[200], escpname[24];
mysql_real_escape_string(Name, escpname);
format(Query, sizeof(Query), "SELECT * FROM `Admins` WHERE `Admin` = '%s'", escpname);
mysql_query_ex(Query);
mysql_store_result();
if(mysql_num_rows() != 0) //If the user is found
{
mysql_free_result();
return true;
}
else
{
mysql_free_result();
return false;
}
}

What did i do wrong?
Reply
#4

pawn Код:
[20:10:19] *** Streamer Plugin: Include file version (0x26105) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
Reply
#5

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
pawn Код:
[20:10:19] *** Streamer Plugin: Include file version (0x26105) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
Well thanks trying to help i added the latest streamer but as you can see nothing changed.

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

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

[15:56:58]
[15:56:58] Server Plugins
[15:56:58] --------------
[15:56:58] Loading plugin: mysql
[15:56:58]

> MySQL plugin R5 successfully loaded.

[15:56:58] Loaded.
[15:56:58] Loading plugin: streamer
[15:56:58]

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

[15:56:58] Loaded.
[15:56:58] Loaded 2 plugins.

[15:56:58]
[15:56:58] Filterscripts
[15:56:58] ---------------
[15:56:58] Loaded 0 filterscripts.

[15:56:58] [MYSQL]: Loading bans from MYSQL (from samp).
[15:56:58] [MYSQL]: Bans loaded from MYSQL (from samp).
[15:56:58] [MYSQL]: Loading houses from MYSQL (from samp).
[15:56:58] [MYSQL]: Houses loaded from MYSQL (from samp).
[15:56:58] [MYSQL]: Loading businesses from MYSQL (from samp).
[15:56:58] [MYSQL]: Businesses loaded from MYSQL (from samp).
[15:56:58] [MYSQL]: Loading sbusinesses from MYSQL (from samp).
[15:56:58] [MYSQL]: SBusinesses loaded from MYSQL (from samp).
[15:56:58] Loading trunk info
[15:56:59] Trunk info loaded.
[15:56:59] Loading IRC channels
[15:56:59] IRC channels loaded.
[15:56:59] Loading dropped items, this can take a while, please wait...
[15:56:59] Dropped items loaded.
[15:56:59] [MYSQL]: Loading furn from MYSQL (from samp).
[15:56:59] [MYSQL]: Furn loaded from MYSQL (from samp).
[15:56:59] Loading skins from mysql.
[15:56:59] Skins loaded from mysql.
[15:56:59] Default Weather: 11
[15:56:59] LSL-RP
[15:56:59] Number of vehicle models: 53
[15:58:26] Incoming connection: 101.175.132.197:60978
[15:58:26] [join] Leighton_Allan has joined the server (0:101.175.132.197)
[15:58:41] [part] Leighton_Allan has left the server (0:0)
Reply
#6

M having the same problem wid one of ma scripts
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)