[HELP] Problem with unfreezing
#1

I created drag filterscript. When drag starts, countdown shows up for player in drag. But only one of players is unfrozen, and when countdown reaches "0" instead of "GO GO GO" comes up "6" and I don't know why. Here is code:

pawn Код:
forward CountAndStart();
public CountAndStart()
{
    count--;
    new string[15];
    for(new i; i<MAX_PLAYERS; i++)
    {
      if(IsPlayerConnected(i))
    {
            if(InRace[i] == true)
            {
              if(count > 0)
              {
                format(string, 15, "~y~%d", count);
                PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
              }
              else
              {
                    TogglePlayerControllable(i, true);
                    format(string, 15, "~g~GO GO GO");
                PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
                count = 6;
                KillTimer(timer);
              }
              GameTextForPlayer(i, string, 1000, 3);
            }
        }
    }
}
Reply


Messages In This Thread
[HELP] Problem with unfreezing - by arnutisz - 30.08.2009, 20:20
Re: [HELP] Problem with unfreezing - by Chaprnks - 30.08.2009, 20:24
Re: [HELP] Problem with unfreezing - by arnutisz - 30.08.2009, 20:33
Re: [HELP] Problem with unfreezing - by JR ! - 30.08.2009, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)