Spamming OnPlayerDeath causing the server to crash?
#10

Quote:
Originally Posted by Calgon
Quote:
Originally Posted by Pawnsta
Quote:
Originally Posted by Calgon
Quote:
Originally Posted by 0xF29323
pawn Код:
PlayerDeath[playerid]++;
if(PlayerDeath[playerid] == 5)
{
    Ban(playerid);
}
than every 3 seconds the PlayerDeath var is set to 0.
You're not resetting it. That's just going to ban them on 5 deaths.

Use SetTimerEx() to reset their deaths and make a public to set PlayerDeaths to 0.
I do reset it.. lol. My server wouldn't have 60 players on right now if I didn't.
It's on another timer which I use for alot of other things, no point of posting it, it does a loop with one line of code (PlayerDeath[i(loop variable)] = 0
First of all, I don't know you so don't make assumptions out nor do I know of your server.

Post the lines that reset the deaths; including the for() statement.
Are you blind? I already posted the code, and I already told you that the death resets to 0 on a timer, which I won't post, because it has other things in it.
Look at the first post which I replied to you, I told you I reset the variable..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)