Chat box gets spammed then server crashes
#1

Ok so when ever this function gets called, the SendClientMessages gets spammed over and over and over, and the dialog does as well, then eventually the samp server.exe crashes, anyone know why this is happening? I am sure it is something I am over looking but I don't know what the issue is.
pawn Код:
public RoundTimer()
{
    for(new i; i<MAX_PLAYERS; i++)
    {
        SendClientMessage(i, COLOR_YELLOW, " Onto the voting stage! ");
        ShowPlayerDialog(i, 3, DIALOG_STYLE_LIST, "Vote","1:Desert\r\n 2:IdleWood\r\n 3:Woods", "Ok","");
        SendClientMessage(i, COLOR_YELLOW, " You have 20 Seconds to vote for the next map! ");
        SetTimer("StartRoundPrep", 20000, false);
        baysideround = 0;
        woodsround = 0;
        desertround = 0;
        if(AXISKILLS > ALLIESKILLS)
        {
            SendClientMessage(i, COLOR_GREEN, " AXIS have won this round ");
        }
        if(ALLIESKILLS > AXISKILLS)
        {
            SendClientMessage(i, COLOR_GREEN, " ALLIES have won this round ");
        }
        if(ALLIESKILLS == AXISKILLS && AXISDEATHS < ALLIESDEATHS)
        {
            SendClientMessage(i, COLOR_GREEN, " Allies and Axis had the same kills but Axis had less deaths so they win!");
        }
        if(ALLIESKILLS == AXISKILLS && ALLIESDEATHS < AXISDEATHS)
        {
            SendClientMessage(i, COLOR_GREEN, " Allies and Axis had the same kills but Allies had less deaths so they win!");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Chat box gets spammed then server crashes - by new121 - 18.03.2012, 22:53
Re: Chat box gets spammed then server crashes - by Vince - 18.03.2012, 22:55
Re: Chat box gets spammed then server crashes - by new121 - 18.03.2012, 22:58
Re: Chat box gets spammed then server crashes - by Vince - 18.03.2012, 23:26
Re: Chat box gets spammed then server crashes - by new121 - 18.03.2012, 23:49
Re: Chat box gets spammed then server crashes - by new121 - 19.03.2012, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)