Goto, Get Here
#5

Quote:
Originally Posted by Backwardsman97
Посмотреть сообщение
pawn Код:
if(listitem == 24)
{
    SendClientMessageToAll(COLOR_ADMIN, "Server admin have killed evryone, Muwhaha");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SetPlayerHealth(i, 0);
    }
    return 1;
}
Several things wrong with it. First of all it spams everybody every time it kills someone. Secondly, there's no need to format the message. Thirdly, and the actual reason it doesn't work, is because you returned 1 inside the loop. You only return something inside a loop when you want to end it. The way you had it, the loop closed after the first iteration. If it doesn't work now, it's because the listitem isn't 24.
Awww, Awesome man Thanks
Reply


Messages In This Thread
Goto, Get Here - by Larsey123IsMe - 14.01.2011, 21:41
Re: Goto, Get Here - by Backwardsman97 - 14.01.2011, 22:00
Re: Goto, Get Here - by Larsey123IsMe - 14.01.2011, 22:20
Re: Goto, Get Here - by Backwardsman97 - 14.01.2011, 22:57
Re: Goto, Get Here - by Larsey123IsMe - 14.01.2011, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)