Timer not alternating between TRUE/FALSE [REP++]
#3

i guess the missing return 1; was th most important addition
pawn Код:
forward HUDTimer();
public HUDTimer()
{
    Clock=1-Clock;
    switch(Clock)
    {
        case 0:
        {
            for(new i=0; i>=MAX_PLAYERS,i++;)
            {
                if(IsPlayerConnected(i))
                {
                    if(IsSpawned[i] == 1)
                    {
                        TextDrawShowForPlayer(i,HUDClockBlink);
                    }
                }
            }
        }
        case 1:
        {
            TextDrawHideForAll(HUDClockBlink);
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)