Server crashes on player text
#1

the server crashes when a player uses chat.

Код:
public OnPlayerText(playerid, text[])
{
	            if(PlayerInfo[playerid][pMuted] == 1) return 0;
	            new ChatBubble[MAX_CHATBUBBLE_LENGTH+1];
				new Chats[MAX_CHATBUBBLE_LENGTH+1];
		        if(text[0] == VipChatKey && PlayerInfo[playerid][pVip] >= 1)
			    {
					    new sText[128],pName[MAX_PLAYER_NAME];
					    GetPlayerName(playerid, pName, sizeof(pName));
						format(sText, sizeof(sText), "*[VIP] %s(%d): %s", pName[playerid], playerid, ColouredText(text[0]), playerid);
				 	    format(ChatBubble,MAX_CHATBUBBLE_LENGTH,"%s",  ColouredText(text[0]));
	                    SetPlayerChatBubble(playerid,ChatBubble,MESSAGE_COLOR,35.0,10000);
	                    VipChatLog(playerid, text);
	                    SendClientMessageToAll(COLOR_AQUA, sText);
				        return 0;
			    }
		        if(text[0] == AdminChatKey && PlayerInfo[playerid][pAdmin] >= 1)
			    {
						new str[250];
						format(str,sizeof(str),"*[ADMIN] %s(%d):%s",GetName(playerid),playerid,text);
						for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if(PlayerInfo[i][pAdmin] >= 1)
							{
							    SendClientMessage(playerid, COLOR_GREEN, str);
							    AdminChatLog(playerid, text);
							}
						}
				        return 0;
			    }
			    format(ChatBubble,MAX_CHATBUBBLE_LENGTH,"%s",text);
			    format(Chats,MAX_CHATBUBBLE_LENGTH,"{%06x}%s(%d):{FFFFFF}%s",GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid,text);
		        SetPlayerChatBubble(playerid,ChatBubble,MESSAGE_COLOR,35.0,10000);
				ChatLog(playerid, text);
	            foreach(Player, i)
				{
				    if(PlayerInfo[i][CMS] == 1)
				    {
	                    SendClientMessage(i, 0xFFFFFFFF, Chats);
				    }
				}
                return 0;
}
and server login (there is no clue of the crash in it)
Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[05:48:34] filterscripts = ""  (string)
[05:48:34] 
[05:48:34] Server Plugins
[05:48:34] --------------
[05:48:34]  Loading plugin: mysql
[05:48:34] 

  > MySQL plugin R7 successfully loaded.

[05:48:34]   Loaded.
[05:48:34]  Loading plugin: streamer
[05:48:34] 

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

[05:48:34]   Loaded.
[05:48:34]  Loading plugin: sscanf
[05:48:34] 

[05:48:34]  ===============================

[05:48:34]       sscanf plugin loaded.     

[05:48:34]    © 2009 Alex "******" Cole

[05:48:34]    0.3d-R2 500 Players "dnee"

[05:48:34]  ===============================

[05:48:34]   Loaded.
[05:48:34]  Loading plugin: Whirlpool
[05:48:34]  
[05:48:34]  ==================
[05:48:34]  
[05:48:34]   Whirlpool loaded
[05:48:34]  
[05:48:34]  ==================
[05:48:34]  
[05:48:34]   Loaded.
[05:48:34]  Loaded 4 plugins.

[05:48:34] 
[05:48:34] Filterscripts
[05:48:34] ---------------
[05:48:34]   Loaded 0 filterscripts.

[05:48:34]  
[05:48:34]  
[05:48:34]  
[05:48:34]  ======================================= 
[05:48:34]  |                                     | 
[05:48:34]  |        YSI version 3.09.0684        | 
[05:48:34]  |        By Alex "******" Cole        | 
[05:48:34]  |                                     | 
[05:48:34]  ======================================= 
[05:48:34]  
[05:48:34]  
[05:48:34]  
[05:48:34] 
----------------------------------
[05:48:34]           FreeRoam(0.3.7)
[05:48:34] ----------------------------------

[05:48:34] Number of vehicle models: 3
[05:49:04] [connection] 127.0.0.1:57588 requests connection cookie.
[05:49:05] [connection] incoming connection: 127.0.0.1:57588 id: 0
[05:49:06] [join] ugf has joined the server (0:127.0.0.1)
[05:56:26] [part] ugf has left the server (0:1)
[05:56:29] --- Server Shutting Down.

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[06:44:18] filterscripts = ""  (string)
[06:44:18] 
[06:44:18] Server Plugins
[06:44:18] --------------
[06:44:18]  Loading plugin: mysql
[06:44:18] 

  > MySQL plugin R7 successfully loaded.

[06:44:18]   Loaded.
[06:44:18]  Loading plugin: streamer
[06:44:18] 

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

[06:44:18]   Loaded.
[06:44:18]  Loading plugin: sscanf
[06:44:18] 

[06:44:18]  ===============================

[06:44:18]       sscanf plugin loaded.     

[06:44:18]    © 2009 Alex "******" Cole

[06:44:18]    0.3d-R2 500 Players "dnee"

[06:44:18]  ===============================

[06:44:18]   Loaded.
[06:44:18]  Loading plugin: Whirlpool
[06:44:18]  
[06:44:18]  ==================
[06:44:18]  
[06:44:18]   Whirlpool loaded
[06:44:18]  
[06:44:18]  ==================
[06:44:18]  
[06:44:18]   Loaded.
[06:44:18]  Loaded 4 plugins.

[06:44:18] 
[06:44:18] Filterscripts
[06:44:18] ---------------
[06:44:18]   Loaded 0 filterscripts.

[06:44:19]  
[06:44:19]  
[06:44:19]  
[06:44:19]  ======================================= 
[06:44:19]  |                                     | 
[06:44:19]  |        YSI version 3.09.0684        | 
[06:44:19]  |        By Alex "******" Cole        | 
[06:44:19]  |                                     | 
[06:44:19]  ======================================= 
[06:44:19]  
[06:44:19]  
[06:44:19]  
[06:44:19] 
----------------------------------
[06:44:19]           FreeRoam(0.3.7)
[06:44:19] ----------------------------------

[06:44:19] Number of vehicle models: 3
[06:44:49] [connection] 127.0.0.1:57606 requests connection cookie.
[06:44:50] [connection] incoming connection: 127.0.0.1:57606 id: 0
[06:44:51] [join] ugf has joined the server (0:127.0.0.1)

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[06:45:17] filterscripts = ""  (string)
[06:45:17] 
[06:45:17] Server Plugins
[06:45:17] --------------
[06:45:17]  Loading plugin: mysql
[06:45:17] 

  > MySQL plugin R7 successfully loaded.

[06:45:17]   Loaded.
[06:45:17]  Loading plugin: streamer
[06:45:17] 

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

[06:45:17]   Loaded.
[06:45:17]  Loading plugin: sscanf
[06:45:17] 

[06:45:17]  ===============================

[06:45:17]       sscanf plugin loaded.     

[06:45:17]    © 2009 Alex "******" Cole

[06:45:17]    0.3d-R2 500 Players "dnee"

[06:45:17]  ===============================

[06:45:17]   Loaded.
[06:45:17]  Loading plugin: Whirlpool
[06:45:17]  
[06:45:17]  ==================
[06:45:17]  
[06:45:17]   Whirlpool loaded
[06:45:17]  
[06:45:17]  ==================
[06:45:17]  
[06:45:17]   Loaded.
[06:45:17]  Loaded 4 plugins.

[06:45:17] 
[06:45:17] Filterscripts
[06:45:17] ---------------
[06:45:17]   Loaded 0 filterscripts.

[06:45:17]  
[06:45:17]  
[06:45:17]  
[06:45:17]  ======================================= 
[06:45:17]  |                                     | 
[06:45:17]  |        YSI version 3.09.0684        | 
[06:45:17]  |        By Alex "******" Cole        | 
[06:45:17]  |                                     | 
[06:45:17]  ======================================= 
[06:45:17]  
[06:45:17]  
[06:45:17]  
[06:45:17] 
----------------------------------
[06:45:17]           FreeRoam(0.3.7)
[06:45:17] ----------------------------------

[06:45:17] Number of vehicle models: 3

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[07:15:26] filterscripts = ""  (string)
[07:15:26] 
[07:15:26] Server Plugins
[07:15:26] --------------
[07:15:26]  Loading plugin: mysql
[07:15:26] 

  > MySQL plugin R7 successfully loaded.

[07:15:26]   Loaded.
[07:15:26]  Loading plugin: streamer
[07:15:26] 

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

[07:15:26]   Loaded.
[07:15:26]  Loading plugin: sscanf
[07:15:26] 

[07:15:26]  ===============================

[07:15:26]       sscanf plugin loaded.     

[07:15:26]    © 2009 Alex "******" Cole

[07:15:26]    0.3d-R2 500 Players "dnee"

[07:15:26]  ===============================

[07:15:26]   Loaded.
[07:15:26]  Loading plugin: Whirlpool
[07:15:26]  
[07:15:26]  ==================
[07:15:26]  
[07:15:26]   Whirlpool loaded
[07:15:26]  
[07:15:26]  ==================
[07:15:26]  
[07:15:26]   Loaded.
[07:15:26]  Loaded 4 plugins.

[07:15:26] 
[07:15:26] Filterscripts
[07:15:26] ---------------
[07:15:26]   Loaded 0 filterscripts.

[07:15:26]  
[07:15:26]  
[07:15:26]  
[07:15:26]  ======================================= 
[07:15:26]  |                                     | 
[07:15:26]  |        YSI version 3.09.0684        | 
[07:15:26]  |        By Alex "******" Cole        | 
[07:15:26]  |                                     | 
[07:15:26]  ======================================= 
[07:15:26]  
[07:15:26]  
[07:15:26]  
[07:15:26] 
----------------------------------
[07:15:26]           FreeRoam(0.3.7)
[07:15:26] ----------------------------------

[07:15:26] Number of vehicle models: 3
[07:15:56] [connection] 127.0.0.1:62255 requests connection cookie.
[07:15:57] [connection] incoming connection: 127.0.0.1:62255 id: 0
[07:15:58] [join] ugf has joined the server (0:127.0.0.1)

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[08:24:57] filterscripts = ""  (string)
[08:24:57] 
[08:24:57] Server Plugins
[08:24:57] --------------
[08:24:57]  Loading plugin: mysql
[08:24:57] 

  > MySQL plugin R7 successfully loaded.

[08:24:57]   Loaded.
[08:24:57]  Loading plugin: streamer
[08:24:57] 

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

[08:24:57]   Loaded.
[08:24:57]  Loading plugin: sscanf
[08:24:57] 

[08:24:57]  ===============================

[08:24:57]       sscanf plugin loaded.     

[08:24:57]    © 2009 Alex "******" Cole

[08:24:57]    0.3d-R2 500 Players "dnee"

[08:24:57]  ===============================

[08:24:57]   Loaded.
[08:24:57]  Loading plugin: Whirlpool
[08:24:57]  
[08:24:57]  ==================
[08:24:57]  
[08:24:57]   Whirlpool loaded
[08:24:57]  
[08:24:57]  ==================
[08:24:57]  
[08:24:57]   Loaded.
[08:24:57]  Loaded 4 plugins.

[08:24:57] 
[08:24:57] Filterscripts
[08:24:57] ---------------
[08:24:57]   Loaded 0 filterscripts.

[08:24:57]  
[08:24:57]  
[08:24:57]  
[08:24:57]  ======================================= 
[08:24:57]  |                                     | 
[08:24:57]  |        YSI version 3.09.0684        | 
[08:24:57]  |        By Alex "******" Cole        | 
[08:24:57]  |                                     | 
[08:24:57]  ======================================= 
[08:24:57]  
[08:24:57]  
[08:24:57]  
[08:24:57] 
----------------------------------
[08:24:57]           FreeRoam(0.3.7)
[08:24:57] ----------------------------------

[08:24:57] Number of vehicle models: 3
[08:25:22] [connection] 127.0.0.1:60296 requests connection cookie.
[08:25:23] [connection] incoming connection: 127.0.0.1:60296 id: 0
[08:25:23] [join] ugf has joined the server (0:127.0.0.1)
[08:47:33] [part] ugf has left the server (0:1)
[08:50:37] [connection] 127.0.0.1:56137 requests connection cookie.
[08:50:38] [connection] incoming connection: 127.0.0.1:56137 id: 0
[08:50:38] [join] ugf has joined the server (0:127.0.0.1)

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[08:51:04] filterscripts = ""  (string)
[08:51:04] 
[08:51:04] Server Plugins
[08:51:04] --------------
[08:51:04]  Loading plugin: mysql
[08:51:04] 

  > MySQL plugin R7 successfully loaded.

[08:51:04]   Loaded.
[08:51:04]  Loading plugin: streamer
[08:51:04] 

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

[08:51:04]   Loaded.
[08:51:04]  Loading plugin: sscanf
[08:51:04] 

[08:51:04]  ===============================

[08:51:04]       sscanf plugin loaded.     

[08:51:04]    © 2009 Alex "******" Cole

[08:51:04]    0.3d-R2 500 Players "dnee"

[08:51:04]  ===============================

[08:51:04]   Loaded.
[08:51:04]  Loading plugin: Whirlpool
[08:51:04]  
[08:51:04]  ==================
[08:51:04]  
[08:51:04]   Whirlpool loaded
[08:51:04]  
[08:51:04]  ==================
[08:51:04]  
[08:51:04]   Loaded.
[08:51:04]  Loaded 4 plugins.

[08:51:04] 
[08:51:04] Filterscripts
[08:51:04] ---------------
[08:51:04]   Loaded 0 filterscripts.

[08:51:05]  
[08:51:05]  
[08:51:05]  
[08:51:05]  ======================================= 
[08:51:05]  |                                     | 
[08:51:05]  |        YSI version 3.09.0684        | 
[08:51:05]  |        By Alex "******" Cole        | 
[08:51:05]  |                                     | 
[08:51:05]  ======================================= 
[08:51:05]  
[08:51:05]  
[08:51:05]  
[08:51:05] 
----------------------------------
[08:51:05]           FreeRoam(0.3.7)
[08:51:05] ----------------------------------

[08:51:05] Number of vehicle models: 3
[08:52:12] [connection] 127.0.0.1:50045 requests connection cookie.
[08:52:13] [connection] incoming connection: 127.0.0.1:50045 id: 0
[08:52:13] [join] ugf has joined the server (0:127.0.0.1)
[08:52:27] [part] ugf has left the server (0:2)
[08:52:27] RCON (In-Game): Player #0 (ugf) failed login.
Console input: reloadbans
[08:52:38] 
[08:52:38] Ban list
[08:52:38] --------
[08:52:38]  Loaded: samp.ban
[08:52:38] 
[08:53:00] [connection] 127.0.0.1:50046 requests connection cookie.
[08:53:01] [connection] incoming connection: 127.0.0.1:50046 id: 0
[08:53:01] [join] ugf has joined the server (0:127.0.0.1)
[08:53:17] RCON (In-Game): Player #0 (ugf) has logged in.

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[08:53:38] filterscripts = ""  (string)
[08:53:38] 
[08:53:38] Server Plugins
[08:53:38] --------------
[08:53:38]  Loading plugin: mysql
[08:53:38] 

  > MySQL plugin R7 successfully loaded.

[08:53:38]   Loaded.
[08:53:38]  Loading plugin: streamer
[08:53:38] 

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

[08:53:38]   Loaded.
[08:53:38]  Loading plugin: sscanf
[08:53:38] 

[08:53:38]  ===============================

[08:53:38]       sscanf plugin loaded.     

[08:53:38]    © 2009 Alex "******" Cole

[08:53:38]    0.3d-R2 500 Players "dnee"

[08:53:38]  ===============================

[08:53:38]   Loaded.
[08:53:38]  Loading plugin: Whirlpool
[08:53:38]  
[08:53:38]  ==================
[08:53:38]  
[08:53:38]   Whirlpool loaded
[08:53:38]  
[08:53:38]  ==================
[08:53:38]  
[08:53:38]   Loaded.
[08:53:38]  Loaded 4 plugins.

[08:53:38] 
[08:53:38] Ban list
[08:53:38] --------
[08:53:38]  Loaded: samp.ban
[08:53:38] 
[08:53:38] 
[08:53:38] Filterscripts
[08:53:38] ---------------
[08:53:38]   Loaded 0 filterscripts.

[08:53:39]  
[08:53:39]  
[08:53:39]  
[08:53:39]  ======================================= 
[08:53:39]  |                                     | 
[08:53:39]  |        YSI version 3.09.0684        | 
[08:53:39]  |        By Alex "******" Cole        | 
[08:53:39]  |                                     | 
[08:53:39]  ======================================= 
[08:53:39]  
[08:53:39]  
[08:53:39]  
[08:53:39] 
----------------------------------
[08:53:39]           FreeRoam(0.3.7)
[08:53:39] ----------------------------------

[08:53:39] Number of vehicle models: 3
[08:53:46] [connection] 127.0.0.1:63622 requests connection cookie.
[08:53:47] [connection] incoming connection: 127.0.0.1:63622 id: 0
[08:53:47] [join] ugf has joined the server (0:127.0.0.1)
[08:54:22] RCON (In-Game): Player #0 (ugf) has logged in.

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[08:54:40] filterscripts = ""  (string)
[08:54:40] 
[08:54:40] Server Plugins
[08:54:40] --------------
[08:54:40]  Loading plugin: mysql
[08:54:40] 

  > MySQL plugin R7 successfully loaded.

[08:54:40]   Loaded.
[08:54:40]  Loading plugin: streamer
[08:54:40] 

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

[08:54:40]   Loaded.
[08:54:40]  Loading plugin: sscanf
[08:54:40] 

[08:54:40]  ===============================

[08:54:40]       sscanf plugin loaded.     

[08:54:40]    © 2009 Alex "******" Cole

[08:54:40]    0.3d-R2 500 Players "dnee"

[08:54:40]  ===============================

[08:54:40]   Loaded.
[08:54:40]  Loading plugin: Whirlpool
[08:54:40]  
[08:54:40]  ==================
[08:54:40]  
[08:54:40]   Whirlpool loaded
[08:54:40]  
[08:54:40]  ==================
[08:54:40]  
[08:54:40]   Loaded.
[08:54:40]  Loaded 4 plugins.

[08:54:40] 
[08:54:40] Ban list
[08:54:40] --------
[08:54:40]  Loaded: samp.ban
[08:54:40] 
[08:54:40] 
[08:54:40] Filterscripts
[08:54:40] ---------------
[08:54:40]   Loaded 0 filterscripts.

[08:54:40]  
[08:54:40]  
[08:54:40]  
[08:54:40]  ======================================= 
[08:54:40]  |                                     | 
[08:54:40]  |        YSI version 3.09.0684        | 
[08:54:40]  |        By Alex "******" Cole        | 
[08:54:40]  |                                     | 
[08:54:40]  ======================================= 
[08:54:40]  
[08:54:40]  
[08:54:40]  
[08:54:40] 
----------------------------------
[08:54:40]           FreeRoam(0.3.7)
[08:54:40] ----------------------------------

[08:54:40] Number of vehicle models: 3
Console input: gmx
[08:55:30] [connection] 127.0.0.1:63634 requests connection cookie.
[08:55:31] [connection] incoming connection: 127.0.0.1:63634 id: 0
[08:55:32] [join] ugf has joined the server (0:127.0.0.1)
[08:55:40]  
[08:55:40]  
[08:55:40]  
[08:55:40]  ======================================= 
[08:55:40]  |                                     | 
[08:55:40]  |        YSI version 3.09.0684        | 
[08:55:40]  |        By Alex "******" Cole        | 
[08:55:40]  |                                     | 
[08:55:40]  ======================================= 
[08:55:40]  
[08:55:40]  
[08:55:40]  
[08:55:40] 
----------------------------------
[08:55:40]           FreeRoam(0.3.7)
[08:55:40] ----------------------------------

[08:55:40] Number of vehicle models: 3

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[08:56:14] filterscripts = ""  (string)
[08:56:14] 
[08:56:14] Server Plugins
[08:56:14] --------------
[08:56:14]  Loading plugin: mysql
[08:56:14] 

  > MySQL plugin R7 successfully loaded.

[08:56:14]   Loaded.
[08:56:14]  Loading plugin: streamer
[08:56:14] 

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

[08:56:14]   Loaded.
[08:56:14]  Loading plugin: sscanf
[08:56:14] 

[08:56:14]  ===============================

[08:56:14]       sscanf plugin loaded.     

[08:56:14]    © 2009 Alex "******" Cole

[08:56:14]    0.3d-R2 500 Players "dnee"

[08:56:14]  ===============================

[08:56:14]   Loaded.
[08:56:14]  Loading plugin: Whirlpool
[08:56:14]  
[08:56:14]  ==================
[08:56:14]  
[08:56:14]   Whirlpool loaded
[08:56:14]  
[08:56:14]  ==================
[08:56:14]  
[08:56:14]   Loaded.
[08:56:14]  Loaded 4 plugins.

[08:56:14] 
[08:56:14] Ban list
[08:56:14] --------
[08:56:14]  Loaded: samp.ban
[08:56:14] 
[08:56:14] 
[08:56:14] Filterscripts
[08:56:14] ---------------
[08:56:14]   Loaded 0 filterscripts.

[08:56:15]  
[08:56:15]  
[08:56:15]  
[08:56:15]  ======================================= 
[08:56:15]  |                                     | 
[08:56:15]  |        YSI version 3.09.0684        | 
[08:56:15]  |        By Alex "******" Cole        | 
[08:56:15]  |                                     | 
[08:56:15]  ======================================= 
[08:56:15]  
[08:56:15]  
[08:56:15]  
[08:56:15] 
----------------------------------
[08:56:15]           FreeRoam(0.3.7)
[08:56:15] ----------------------------------

[08:56:15] Number of vehicle models: 3
[09:00:01] [connection] 127.0.0.1:61371 requests connection cookie.
[09:00:02] [connection] incoming connection: 127.0.0.1:61371 id: 0
[09:00:03] [join] ugf has joined the server (0:127.0.0.1)

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[09:00:26] filterscripts = ""  (string)
[09:00:26] 
[09:00:26] Server Plugins
[09:00:26] --------------
[09:00:26]  Loading plugin: mysql
[09:00:26] 

  > MySQL plugin R7 successfully loaded.

[09:00:26]   Loaded.
[09:00:26]  Loading plugin: streamer
[09:00:26] 

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

[09:00:26]   Loaded.
[09:00:26]  Loading plugin: sscanf
[09:00:26] 

[09:00:26]  ===============================

[09:00:26]       sscanf plugin loaded.     

[09:00:26]    © 2009 Alex "******" Cole

[09:00:26]    0.3d-R2 500 Players "dnee"

[09:00:26]  ===============================

[09:00:26]   Loaded.
[09:00:26]  Loading plugin: Whirlpool
[09:00:26]  
[09:00:26]  ==================
[09:00:26]  
[09:00:26]   Whirlpool loaded
[09:00:26]  
[09:00:26]  ==================
[09:00:26]  
[09:00:26]   Loaded.
[09:00:26]  Loaded 4 plugins.

[09:00:26] 
[09:00:26] Ban list
[09:00:26] --------
[09:00:26]  Loaded: samp.ban
[09:00:26] 
[09:00:26] 
[09:00:26] Filterscripts
[09:00:26] ---------------
[09:00:26]   Loaded 0 filterscripts.

[09:00:26]  
[09:00:26]  
[09:00:26]  
[09:00:26]  ======================================= 
[09:00:26]  |                                     | 
[09:00:26]  |        YSI version 3.09.0684        | 
[09:00:26]  |        By Alex "******" Cole        | 
[09:00:26]  |                                     | 
[09:00:26]  ======================================= 
[09:00:26]  
[09:00:26]  
[09:00:26]  
[09:00:26] 
----------------------------------
[09:00:26]           FreeRoam(0.3.7)
[09:00:26] ----------------------------------

[09:00:26] Number of vehicle models: 3
[09:00:31] [connection] 127.0.0.1:61375 requests connection cookie.
[09:00:32] [connection] incoming connection: 127.0.0.1:61375 id: 0
[09:00:32] [join] ugf has joined the server (0:127.0.0.1)

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

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[09:01:43] filterscripts = ""  (string)
[09:01:43] 
[09:01:43] Server Plugins
[09:01:43] --------------
[09:01:43]  Loading plugin: mysql
[09:01:43] 

  > MySQL plugin R7 successfully loaded.

[09:01:43]   Loaded.
[09:01:43]  Loading plugin: streamer
[09:01:43] 

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

[09:01:43]   Loaded.
[09:01:43]  Loading plugin: sscanf
[09:01:43] 

[09:01:43]  ===============================

[09:01:43]       sscanf plugin loaded.     

[09:01:43]    © 2009 Alex "******" Cole

[09:01:43]    0.3d-R2 500 Players "dnee"

[09:01:43]  ===============================

[09:01:43]   Loaded.
[09:01:43]  Loading plugin: Whirlpool
[09:01:43]  
[09:01:43]  ==================
[09:01:43]  
[09:01:43]   Whirlpool loaded
[09:01:43]  
[09:01:43]  ==================
[09:01:43]  
[09:01:43]   Loaded.
[09:01:43]  Loaded 4 plugins.

[09:01:43] 
[09:01:43] Ban list
[09:01:43] --------
[09:01:43]  Loaded: samp.ban
[09:01:43] 
[09:01:43] 
[09:01:43] Filterscripts
[09:01:43] ---------------
[09:01:43]   Loaded 0 filterscripts.

[09:01:43]  
[09:01:43]  
[09:01:43]  
[09:01:43]  ======================================= 
[09:01:43]  |                                     | 
[09:01:43]  |        YSI version 3.09.0684        | 
[09:01:43]  |        By Alex "******" Cole        | 
[09:01:43]  |                                     | 
[09:01:43]  ======================================= 
[09:01:43]  
[09:01:43]  
[09:01:44]  
[09:01:44] 
----------------------------------
[09:01:44]           FreeRoam(0.3.7)
[09:01:44] ----------------------------------

[09:01:44] Number of vehicle models: 3
[09:01:47] [connection] 127.0.0.1:61388 requests connection cookie.
[09:01:48] [connection] incoming connection: 127.0.0.1:61388 id: 0
[09:01:49] [join] ugf has joined the server (0:127.0.0.1)
I got this in server log when i used the crash detect

Код:
[09:22:51] [debug] Server crashed while executing freeroam.amx
[09:22:51] [debug] AMX backtrace:
[09:22:51] [debug] #0 native fwrite () from samp-server.exe
[09:22:51] [debug] #1 0001e760 in ?? (0, 19122616) from freeroam.amx
[09:22:51] [debug] #2 00030f38 in ?? (0, 19122616) from freeroam.amx
[09:22:51] [debug] #3 00005b44 in public OnPlayerText (0, 19122616) from freeroam.amx
[09:22:51] [debug] Native backtrace:
[09:22:51] [debug] #0 77927862 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[09:22:51] [debug] #1 00498bb8 in ?? () from samp-server.exe
[09:22:51] [debug] #2 0040531e in ?? () from samp-server.exe
Reply
#2

Mind to show your OnPlayerText and your server_log.txt.

Use crashdetect plugin to detect what actually is causing crash.
Reply
#3

Sorry i forgot that,now i added it on the thread
Reply
#4

I got this in server log when i used the crash detect

Код:
[09:22:51] [debug] Server crashed while executing freeroam.amx
[09:22:51] [debug] AMX backtrace:
[09:22:51] [debug] #0 native fwrite () from samp-server.exe
[09:22:51] [debug] #1 0001e760 in ?? (0, 19122616) from freeroam.amx
[09:22:51] [debug] #2 00030f38 in ?? (0, 19122616) from freeroam.amx
[09:22:51] [debug] #3 00005b44 in public OnPlayerText (0, 19122616) from freeroam.amx
[09:22:51] [debug] Native backtrace:
[09:22:51] [debug] #0 77927862 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[09:22:51] [debug] #1 00498bb8 in ?? () from samp-server.exe
[09:22:51] [debug] #2 0040531e in ?? () from samp-server.exe
Reply
#5

Show VipChatLog, AdminChatLog and ChatLog function
+
next time compile with this and show info
https://github.com/Zeex/samp-plugin-...ith-debug-info
Reply
#6

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Show VipChatLog, AdminChatLog and ChatLog function
+
next time compile with this and show info
https://github.com/Zeex/samp-plugin-...ith-debug-info
vip,admin and chat log.all are empty
Reply
#7

I dont want logs but function
look here how it should be correct without crashing https://sampwiki.blast.hk/wiki/Fwrite
Reply
#8

Quote:
Originally Posted by Jefff
Посмотреть сообщение
I dont want logs but function
look here how it should be correct without crashing https://sampwiki.blast.hk/wiki/Fwrite
Код:
stock ChatLog(playerid, text[])
{
	 new
	 File:lFile = fopen("FreeRoam/Logs/Chat Log.txt", io_append),
	 logData[178],
	 fyear, fmonth, fday,
	 fhour, fminute, fsecond;

 	 getdate(fyear, fmonth, fday);
	 gettime(fhour, fminute, fsecond);

	 format(logData, sizeof(logData),"[%02d/%02d/%04d %02d:%02d:%02d] %s(%d): %s \r\n", fday, fmonth, fyear, fhour, fminute, fsecond, GetName(playerid), playerid, text);
	 fwrite(lFile, logData);

	 fclose(lFile);
	 return 1;
}

stock VipChatLog(playerid, text[])
{
	 new
	 File:lFile = fopen("FreeRoam/Logs/VIP Chat Log.txt", io_append),
	 logData[178],
	 fyear, fmonth, fday,
	 fhour, fminute, fsecond;

 	 getdate(fyear, fmonth, fday);
	 gettime(fhour, fminute, fsecond);

	 format(logData, sizeof(logData),"[%02d/%02d/%04d %02d:%02d:%02d] %s(%d): %s \r\n", fday, fmonth, fyear, fhour, fminute, fsecond, GetName(playerid), playerid, text);
	 fwrite(lFile, logData);

	 fclose(lFile);
	 return 1;
}

stock AdminChatLog(playerid, text[])
{
	 new
	 File:lFile = fopen("FreeRoam/Logs/Admin Chat Log.txt", io_append),
	 logData[178],
	 fyear, fmonth, fday,
	 fhour, fminute, fsecond;

 	 getdate(fyear, fmonth, fday);
	 gettime(fhour, fminute, fsecond);

	 format(logData, sizeof(logData),"[%02d/%02d/%04d %02d:%02d:%02d] (Admin Level: %d) %s(%d): %s \r\n", fday, fmonth, fyear, fhour, fminute, fsecond, PlayerInfo[playerid][pAdmin], GetName(playerid), playerid, text);
	 fwrite(lFile, logData);

	 fclose(lFile);
	 return 1;
}
Reply
#9

It's simple, you don't have those folders/files placed in your scriptfiles folder.

SA-MP Wiki about fwrite: "Using an invalid handle will crash your server! Get a valid handle by using fopen or ftemp."
Reply
#10

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
It's simple, you don't have those folders/files placed in your scriptfiles folder.

SA-MP Wiki about fwrite: "Using an invalid handle will crash your server! Get a valid handle by using fopen or ftemp."
I have the Logs folder and FreeRoam folder
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)