new crasher?
#1

Hello,

My server suddenly crashed just a few moments ago,here's crashdetect report

Code:
[14:52:52] [debug] Server crashed while executing LSGW361.amx
[14:52:52] [debug] AMX backtrace:
[14:52:52] [debug] #0 0000006e in ?? (... <10 arguments>) at <unknown file>:0
[14:52:52] [debug] #1 0000006e in public OnPlayerWeaponShot () at <unknown file>:0
Reply
#2

According to the crash log i believe its a weapon crasher or issue on OnPlayerWeaponShot.
Show us line: OnPlayerWeaponShot
Reply
#3

i am using an anti crasher ,here's the code

Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
	//SendClientMessageToAll(-1, "OnPlayerWeaponShot");

	//PlayerInfo[playerid][Bullets][0]++;


	if( hittype != BULLET_HIT_TYPE_NONE ) // Bullet Crashing uses just this hittype
	{
        if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) ) // a valid offset, it's impossible that a offset bigger than 1000 is legit (also less than -1000.0 is impossible, not used by this hack, but still, let's check for it, just for the future, who knows what hacks will appear). The object with biggest offset is having ~700-800 radius.
		{
			new string[128];
			format(string,sizeof(string),"%s has been banned by The System for Invalid Bullets", GetName(playerid));
			SendClientMessageToAll(COLOR_RED, string);
            BanWithReason(playerid, string, SYSTEM_ID, "Invalid Bullets");
			return 0; // let's desynchronize that bullet, so players won't crash
		}
	}
This crash never happened before it's the first time
Reply
#4

upgrade your server to R2-1
https://sampforum.blast.hk/showthread.php?tid=581259
"- Weapon ID checking after OnPlayerWeaponShot in case the script doesn't filter it."
Reply
#5

Im already running r2-1
_
Reply
#6

http://forum.sa-mp.com/showpost.php?...5&postcount=85

http://forum.sa-mp.com/showpost.php?...&postckount=86
Reply
#7

Will try it out thanks for your help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)