make this shorter?
#1

pawn Код:
forward One();
forward Two();
//etc..

public Two()
{
    GameTextForAll("~y~2",3000,4);
    SoundForAll(1056);
    return 1;
}

public One()
{
    GameTextForAll("~r~1",3000,4);
    SoundForAll(1056);
    return 1;
}

// up to go

COMMAND:countdown(playerid, params[])
{
    if(Countdown == 1) return SendClientMessage(playerid, Red, "countdown already on");
    SendClientMessage(playerid, Green, "count started");
    SetTimer("Three", 1000, 0);
    SetTimer("Two", 2000, 0);
    SetTimer("One", 3000, 0);
    SetTimer("Go", 4000, 0);
    Countdown = 1;
    return 1;
}
how to make it shorter? I dont want so many publics and all
Reply


Messages In This Thread
make this shorter? - by fissekarl - 22.05.2011, 18:43
Re: make this shorter? - by fissekarl - 23.05.2011, 10:42
Re: make this shorter? - by (SF)Noobanatior - 23.05.2011, 11:08
Re: make this shorter? - by fissekarl - 23.05.2011, 12:43
Re: make this shorter? - by Seven_of_Nine - 23.05.2011, 13:09
Re: make this shorter? - by Austin - 23.05.2011, 13:36
Re: make this shorter? - by fissekarl - 23.05.2011, 13:55
Re: make this shorter? - by Austin - 23.05.2011, 14:21
Re: make this shorter? - by fissekarl - 23.05.2011, 16:17

Forum Jump:


Users browsing this thread: 4 Guest(s)