NetStats_MessagesReceived - crash server
#3

I deleted function NetStats_MessagesReceived.

NetStats_BytesReceived function causes the same problem


pawn Код:
for(new i, m = GetMaxPlayers(); i < m; i ++) {
        if(!IsPlayerConnected(i)) continue;

        f_var[1] = NetStats_BytesReceived(i);
        if(f_var[1] - BytesCount[i] > 7500) {
            Ban(i);
            continue;
        }
        else BytesCount[i] = f_var[1];
        ...
    }

[debug] Server crashed while executing GameMode.amx
[debug] AMX backtrace:
[debug] #0 native NetStats_BytesReceived () [080d9f60] from samp03svr
[debug] #1 000f0008 in public TimerOneSecond () from GameMode.amx
...




p.s. I would not use these features, but how to defend against dos attacks?
Reply


Messages In This Thread
NetStats_MessagesReceived - crash server - by x_O - 17.02.2014, 08:19
Re: NetStats_MessagesReceived - crash server - by JernejL - 17.02.2014, 18:10
Re: NetStats_MessagesReceived - crash server - by x_O - 12.03.2014, 02:30
Re: NetStats_MessagesReceived - crash server - by ][Noname][ - 12.03.2014, 05:16
Re: NetStats_MessagesReceived - crash server - by ][Noname][ - 09.04.2014, 18:12
Re: NetStats_MessagesReceived - crash server - by d0 - 09.04.2014, 18:15
Re: NetStats_MessagesReceived - crash server - by AssMunchingFool - 09.04.2014, 23:26

Forum Jump:


Users browsing this thread: 2 Guest(s)