new crasher? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: new crasher? (
/showthread.php?tid=589782)
new crasher? -
Ha$H_Sexyboy - 22.09.2015
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
Re: new crasher? -
Alex Magaсa - 22.09.2015
According to the crash log i believe its a weapon crasher or issue on OnPlayerWeaponShot.
Show us line: OnPlayerWeaponShot
Re: new crasher? -
Ha$H_Sexyboy - 22.09.2015
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
Re: new crasher? -
IDarkness - 23.09.2015
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."
Re: new crasher? -
Ha$H_Sexyboy - 23.09.2015
Im already running r2-1
_
Re: new crasher? -
Alex Magaсa - 23.09.2015
http://forum.sa-mp.com/showpost.php?...5&postcount=85
http://forum.sa-mp.com/showpost.php?...&postckount=86
Re: new crasher? -
Ha$H_Sexyboy - 23.09.2015
Quote:
Originally Posted by Alex Magaсa
|
Will try it out thanks for your help