chat causes server to crash
#1

tittle says it all really i type in chat and the entire server crashes tryed the crash plugin didnt come up with anything here is the logs

Код:
SA-MP Dedicated Server
----------------------
v0.3c R5, ©2005-2011 SA-MP Team

[06:16:14] 
[06:16:14] Server Plugins
[06:16:14] --------------
[06:16:14]  Loading plugin: streamer.dll
[06:16:14] 

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

[06:16:14]   Loaded.
[06:16:14]  Loading plugin: sscanf.dll
[06:16:14] 

[06:16:14]  ===============================

[06:16:14]       sscanf plugin loaded.     

[06:16:14]    © 2009 Alex "******" Cole

[06:16:14]    0.3d-R2 500 Players "dnee"

[06:16:14]  ===============================

[06:16:14]   Loaded.
[06:16:14]  Loading plugin: Whirlpool.dll
[06:16:14]  
[06:16:14]  ==================
[06:16:14]  
[06:16:14]   Whirlpool loaded
[06:16:14]  
[06:16:14]  ==================
[06:16:14]  
[06:16:14]   Loaded.
[06:16:14]  Loaded 3 plugins.

[06:16:14] 
[06:16:14] Filter Scripts
[06:16:14] ---------------
[06:16:14]   Loaded 0 filter scripts.

[06:16:14]  
[06:16:14]  ======================================= 
[06:16:14]  |                                     | 
[06:16:14]  |        YSI version 1.03.0011        | 
[06:16:14]  |        By Alex "******" Cole        | 
[06:16:14]  |                                     | 
[06:16:14]  |  Checking the latest YSI version..  | 
[06:16:14]  |                                     | 
[06:16:14]  ======================================= 
[06:16:14]  
[06:16:14] EnableTirePopping() function is removed.
[06:16:14] SA-MP Dedicated Server | v0.3c R5, ©2005-2011 SA-MP Team
[06:16:14]  
[06:16:14] Loading GameMode...
[06:16:14] Initalizing...
[06:16:14]  
[06:16:14]              Loading 00%
[06:16:14]                  Loading 25%
[06:16:14]                      Loading 50%
[06:16:14]                          Loading 75%
[06:16:14]                              Loaded 100%
[06:16:14]  
[06:16:14]                                    Initalized!
[06:16:14]  
[06:16:14]                             GameMode Loaded Successfully!
[06:16:14]  
[06:16:14]                    PCRP[Version 4.1] Made By Lookin Updated 20/08/2012
[06:16:14]                     Copyright © 2010 - 2012 LScripting Productions
[06:16:14]                                     Sponsored By
[06:16:14]                 Profound Gaming: Gaming So Intense, It's Considered Profanity!
[06:16:14]                              www.profoundgaming.weebly.com
[06:16:14]  
[06:16:14] Number of vehicle models: 182
[06:16:15] Weather changed to ID: 35
[06:16:35]  
[06:16:35]  ======================================= 
[06:16:35]  |                                     | 
[06:16:35]  |   Error: Could not connect to YSI   | 
[06:16:35]  |  update server (response was 006).  | 
[06:16:35]  |                                     | 
[06:16:35]  ======================================= 
[06:16:35]  
[06:18:55] Incoming connection: 192.168.1.3:55287
[06:18:55] [join] [PG]Lookin has joined the server (0:192.168.1.3)
[06:19:01] [PG]Lookin has registered an account.
[06:19:17] [chat] [[PG]Lookin]: hi
the includes

Код:
#include <a_samp>
#include <streamer>
#include <zcmd>
#include <sscanf2>
#include <time>
#include <gLibrary>
onplayerupdate

Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerState(playerid)==PLAYER_STATE_ONFOOT)
	{
		new weaponid=GetPlayerWeapon(playerid),oldweapontype=GetWeaponType(OldWeapon[playerid]);
		new weapontype=GetWeaponType(weaponid);
		if(HoldingWeapon[playerid]==weaponid)
		    StopPlayerHoldingObject(playerid);

		if(OldWeapon[playerid]!=weaponid)
		{
		    new modelid=GetWeaponModel(OldWeapon[playerid]);
		    if(modelid!=0 && oldweapontype!=WEAPON_TYPE_NONE && oldweapontype!=weapontype)
		    {
		        HoldingWeapon[playerid]=OldWeapon[playerid];
		        switch(oldweapontype)
		        {
		            case WEAPON_TYPE_LIGHT:
						SetPlayerHoldingObject(playerid, modelid, 8,0.0,-0.1,0.15, -100.0, 0.0, 0.0);

					case WEAPON_TYPE_MELEE:
					    SetPlayerHoldingObject(playerid, modelid, 7,0.0,0.0,-0.18, 100.0, 45.0, 0.0);

					case WEAPON_TYPE_HEAVY:
					    SetPlayerHoldingObject(playerid, modelid, 1, 0.2,-0.125,-0.1,0.0,25.0,180.0);
		        }
		    }
		}

		if(oldweapontype!=weapontype)
		OldWeapon[playerid]=weaponid;
	}
	if(!IsPlayerConnected(playerid)) return 0;

	// No weapons in interiors
	if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
	    SetPlayerArmedWeapon(playerid,0); // fists
	    return 0; // no syncing until they change their weapon
	}

/*	// Don't allow minigun
	if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
	    Kick(playerid);
	    return 0;
	}*/

	/* No jetpacks allowed
	if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
	    Kick(playerid);
	    return 0;
	}*/
	
	SetPlayerScore( playerid, GetPlayerWantedLevel( playerid ) );
/* 	if ( GetPlayerWantedLevel( playerid ) > 0 )
  	SetPlayerScore( playerid, GetPlayerWantedLevel( playerid ) );*/
//	return 1;
//	}
	return 1;
}
nativechecker

Код:
A-MP Dedicated Server
----------------------
v0.3c-R5, ©2005-2011 SA-MP Team

[16:21:22] 
[16:21:22] Server Plugins
[16:21:22] --------------
[16:21:22]  Loading plugin: streamer.dll
[16:21:22] 

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

[16:21:22]   Loaded.
[16:21:22]  Loading plugin: sscanf.dll
[16:21:22] 

[16:21:22]  ===============================

[16:21:22]       sscanf plugin loaded.     

[16:21:22]    © 2009 Alex "******" Cole

[16:21:22]  ===============================

[16:21:22]   Loaded.
[16:21:22]  Loading plugin: Whirlpool.dll
[16:21:22]  
[16:21:22]  ==================
[16:21:22]  
[16:21:22]   Whirlpool loaded
[16:21:22]  
[16:21:22]  ==================
[16:21:22]  
[16:21:22]   Loaded.
[16:21:22]  Loading plugin: nativechecker.dll
[16:21:22]   Loaded.
[16:21:22]  Loaded 4 plugins.

[16:21:22] 
[16:21:22] Filterscripts
[16:21:22] ---------------
[16:21:22]   Loading filterscript 'ppchouse.amx'...
[16:21:23] ----------------------------------------
[16:21:23] PPC Housing filterscript initialized
[16:21:23] Houses loaded: 1
[16:21:23] ----------------------------------------
[16:21:23]   Loading filterscript 'ppcbiz.amx'...
[16:21:23] -------------------------------------
[16:21:23] PPC Business filterscript initialized
[16:21:23] Businesses loaded: 0
[16:21:23] -------------------------------------
[16:21:23]   Loading filterscript 'ppcspeed.amx'...
[16:21:23] 
----------------------------------------
[16:21:23] PPC Speedometer filterscript initialized
[16:21:23] Gas-stations created: 22
[16:21:23] Speedcamera's loaded: 0
[16:21:23] ----------------------------------------

[16:21:23]   Loaded 3 filterscripts.

[16:21:23]  
[16:21:23]  ======================================= 
[16:21:23]  |                                     | 
[16:21:23]  |        YSI version 1.03.0011        | 
[16:21:23]  |        By Alex "******" Cole        | 
[16:21:23]  |                                     | 
[16:21:23]  |  Checking the latest YSI version..  | 
[16:21:23]  |                                     | 
[16:21:23]  ======================================= 
[16:21:23]  
[16:21:23] SA-MP Dedicated Server | v0.3c R5, ©2005-2012 SA-MP Team
[16:21:23]  
[16:21:23] Loading GameMode...
[16:21:23] Initalizing...
[16:21:23]  
[16:21:23]              Loading 00%
[16:21:23]                  Loading 25%
[16:21:23]                      Loading 50%
[16:21:23]                          Loading 75%
[16:21:23]                              Loaded 100%
[16:21:23]  
[16:21:23]                                    Initalized!
[16:21:23]  
[16:21:23]                             GameMode Loaded Successfully!
[16:21:23]                      Lookins Administration System Status: ONLINE!
[16:21:23]                    PCRP[Version 4.1] Made By Lookin Updated 16/08/2012
[16:21:23]                     Copyright © 2010 - 2012 LScripting Productions
[16:21:23]                                     Sponsored By
[16:21:23]                Profound Gaming: Gaming So Intense, It's Considered Profanity!
[16:21:23]                              www.profoundgaming.weebly.com
[16:21:23]  
[16:21:23] Number of vehicle models: 182
[16:21:24] Weather changed to ID: 13
[16:21:35]  
[16:21:35]  ======================================= 
[16:21:35]  |                                     | 
[16:21:35]  |   Error: Could not connect to YSI   | 
[16:21:35]  |  update server (response was 006).  | 
[16:21:35]  |                                     | 
[16:21:35]  ======================================= 
[16:21:35]  
[16:21:47] Incoming connection: 192.168.1.6:63059
[16:21:47] [join] [PG]Lookin has joined the server (0:192.168.1.6)
[16:21:48] |-| Server |-| Player {FFFFFF} [PG]Lookin {4165FF} Join To Server {D64343} [ Country: Reserved

(ZZZ) | IP: 192.168.1.6 | Ping: 27 ]
[16:22:08] [PG]Lookin has logged in.
[16:22:13] [chat] [[PG]Lookin]: hi
Reply
#2

Show us the OnPlayerText Callback.
Reply
#3

sure

Код:
public OnPlayerText(playerid,text[])
{
  	return 1;
}
here ya go.
Reply
#4

use crashdetect plugin, that will show you where's the problem
Reply
#5

well i dont get why my onplayertext is crashing when its not even being used?


Код:
SA-MP Dedicated Server
----------------------
v0.3d-R2, ©2005-2011 SA-MP Team

[22:22:43] 
[22:22:43] Server Plugins
[22:22:43] --------------
[22:22:43]  Loading plugin: streamer.dll
[22:22:43] 

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

[22:22:43]   Loaded.
[22:22:43]  Loading plugin: sscanf.dll
[22:22:43] 

[22:22:43]  ===============================

[22:22:43]       sscanf plugin loaded.     

[22:22:43]    © 2009 Alex "******" Cole

[22:22:43]  ===============================

[22:22:43]   Loaded.
[22:22:43]  Loading plugin: Whirlpool.dll
[22:22:43]  
[22:22:43]  ==================
[22:22:43]  
[22:22:43]   Whirlpool loaded
[22:22:43]  
[22:22:43]  ==================
[22:22:43]  
[22:22:43]   Loaded.
[22:22:43]  Loading plugin: nativechecker.dll
[22:22:43]   Loaded.
[22:22:43]  Loading plugin: crashdetect.dll
[22:22:43]   crashdetect v4.8.3 is OK.
[22:22:43]   Loaded.
[22:22:43]  Loaded 5 plugins.

[22:22:43] 
[22:22:43] Filterscripts
[22:22:43] ---------------
[22:22:43]   Loading filterscript 'ppchouse.amx'...
[22:22:43] ----------------------------------------
[22:22:43] PPC Housing filterscript initialized
[22:22:43] Houses loaded: 1
[22:22:43] ----------------------------------------
[22:22:43]   Loading filterscript 'ppcbiz.amx'...
[22:22:43] -------------------------------------
[22:22:43] PPC Business filterscript initialized
[22:22:43] Businesses loaded: 0
[22:22:43] -------------------------------------
[22:22:43]   Loading filterscript 'ppcspeed.amx'...
[22:22:43] 
----------------------------------------
[22:22:43] PPC Speedometer filterscript initialized
[22:22:43] Gas-stations created: 22
[22:22:43] Speedcamera's loaded: 0
[22:22:43] ----------------------------------------

[22:22:43]   Loaded 3 filterscripts.

[22:22:43]  
[22:22:43]  ======================================= 
[22:22:43]  |                                     | 
[22:22:43]  |        YSI version 1.03.0011        | 
[22:22:43]  |        By Alex "******" Cole        | 
[22:22:43]  |                                     | 
[22:22:43]  |  Checking the latest YSI version..  | 
[22:22:43]  |                                     | 
[22:22:43]  ======================================= 
[22:22:43]  
[22:22:43] SA-MP Dedicated Server | v0.3E R6, ©2005-2012 SA-MP Team
[22:22:43]  
[22:22:43] Loading GameMode...
[22:22:43] Initalizing...
[22:22:43]  
[22:22:43]              Loading 00%
[22:22:43]                  Loading 25%
[22:22:43]                      Loading 50%
[22:22:43]                          Loading 75%
[22:22:43]                              Loaded 100%
[22:22:43]  
[22:22:43]                                    Initalized!
[22:22:43]  
[22:22:43]                             GameMode Loaded Successfully!
[22:22:43]                      Lookins Administration System Status: ONLINE!
[22:22:43]                    PCRP[Version 4.1] Made By Lookin Updated 16/08/2012
[22:22:43]                     Copyright © 2010 - 2012 LScripting Productions
[22:22:43]                                     Sponsored By
[22:22:43]                Profound Gaming: Gaming So Intense, It's Considered Profanity!
[22:22:43]                              www.profoundgaming.weebly.com
[22:22:43]  
[22:22:43] Number of vehicle models: 182
[22:22:44] Weather changed to ID: 12
[22:22:56]  
[22:22:56]  ======================================= 
[22:22:56]  |                                     | 
[22:22:56]  |   Error: Could not connect to YSI   | 
[22:22:56]  |  update server (response was 006).  | 
[22:22:56]  |                                     | 
[22:22:56]  ======================================= 
[22:22:56]  
[22:23:40] Incoming connection: 192.168.1.3:49830
[22:23:41] [join] [PG]Lookin has joined the server (0:192.168.1.3)
[22:23:42] |-| Server |-| Player {FFFFFF} [PG]Lookin {4165FF} Join To Server {D64343} [ Country: Reserved

(ZZZ) | IP: 192.168.1.3 | Ping: 35 ]
[22:23:51] [PG]Lookin has logged in.
[22:24:15] [chat] [[PG]Lookin]: hi
[22:24:15] [debug] Server crashed while executing PCRP[Version4.1].amx
[22:24:15] [debug] AMX backtrace:
[22:24:15] [debug] #0 native CallLocalFunction () [004715d0] from samp-server.exe
[22:24:15] [debug] #1 00001924 in public OnPlayerText () from PCRP[Version4.1].amx
[22:24:15] [debug] System backtrace:
[22:24:15] [debug] #0 004010b6 in ?? () from C:\Users\Lookin\Desktop\scripting need to sort\0.3D\samp-server.exe
[22:24:15] [debug] #1 5dca3c32 in ?? () from C:\Users\Lookin\Desktop\scripting need to sort\0.3D\plugins\crashdetect.dll
[22:24:15] [debug] #2 5dca6076 in ?? () from C:\Users\Lookin\Desktop\scripting need to sort\0.3D\plugins\crashdetect.dll
[22:24:15] [debug] #3 5dc9c05a in ?? () from C:\Users\Lookin\Desktop\scripting need to sort\0.3D\plugins\crashdetect.dll
[22:24:15] [debug] #4 5dca3c5e in ?? () from C:\Users\Lookin\Desktop\scripting need to sort\0.3D\plugins\crashdetect.dll
[22:24:15] [debug] #5 0046c652 in ?? () from C:\Users\Lookin\Desktop\scripting need to sort\0.3D\samp-server.exe

ok so i did this

Код:
/*public OnPlayerText(playerid,text[])
{
  	return 1;
}*/
and now it works fine no crashing or anything all these months just to find out onplayertext is doing this? im not sure why ill try find out and post it here so people can fix it as well if they have 2
Reply
#6

Same happening to me after updating to streamer plugin 2.6.1 ..
Reply
#7

Have you tried

pawn Код:
return 0; //INSTEAD of
return 1; // ?
Reply
#8

Would block all messages, but has no effect on the crash.
Reply
#9

ok well its runs a little better but has started it again and same thing with me nas since 0.3e came out it started
Reply
#10

Try this once. if its not solved.

pawn Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)