countdown
#1

My problem: It's only showing "go!"

pawn Код:
gCountDown--;
    if(gCountDown == 3) { format(str, sizeof(str),"~r~3"); GameTextForAll(str, 1000, 3); }
    else if(gCountDown == 2) { format(str, sizeof(str),"~y~2"); GameTextForAll(str, 1000, 3); }
    else if(gCountDown == 1) { format(str, sizeof(str),"~b~1"); GameTextForAll(str, 1000, 3); }
    else if(gCountDown == 0)
    {
        format(str, sizeof(str),"~g~go!");
        GameTextForAll(str, 1000, 3);
Reply
#2

Anyone? :S
Reply
#3

I am beggin everyone!
Reply
#4

Show the whole function ..
Reply
#5

It's just in a public that goes each sec. :S
Reply
#6

Then try this (assuming that gCountDown is set to 3 when timer starts)

pawn Код:
switch(gCountDown)
{
    case 0: GameTextForAll("~g~GO!", 1000, 3);
    case 1: GameTextForAll("~b~1", 1000, 3);
    case 2: GameTextForAll("~y~2", 1000, 3);
    case 3: GameTextForAll("~r~3", 1000, 3);
}
gCountDown--;
Reply
#7

Still only showing: GO!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)