Gametext of countdown problem
#1

pawn Код:
format(str, sizeof(str), "~y~ ~h~ ]%d]", CoUnTDown);
The gametext above should show like: *STAR* countdown number *STAR*, ALL It shows is just a damn star nothing more!

the whole function is like this:

pawn Код:
public CountdowN()
{
    for(new i; i<MAX_PLAYERS; i++)
    {
      if(InRace[i] == 1)
      {
        if(CoUnTDown == 0)
            {
              PlayerPlaySound(i,1057,0,0,0);
              GameTextForPlayer(i, "~y~ ~h~]Go ~b~Go ~y~ ~h~Go]", 3000, 3);
              RacePos = 0;
              SetPlayerRaceCheckpoint(i, 0, RaceI[CurrentRace][X][1], RaceI[CurrentRace][Y][1], RaceI[CurrentRace][Z][1], RaceI[CurrentRace + 1][X][2], RaceI[CurrentRace + 1][Y][2], RaceI[CurrentRace + 1][Z][2], 25);
        RaceCPS[i] = 1;
        TogglePlayerControllable(i, true);
        Time53 = SetTimer("RaceTimer", 1000, true);

            }
            if(CoUnTDown > 0)
            {
                new str[10];
                format(str, sizeof(str), "~y~ ~h~ ]%d]", CoUnTDown);
                GameTextForPlayer(i, str, 900, 3);
                PlayerPlaySound(i,1056,0,0,0);
            }
        }
    }
  if(CoUnTDown == 0)
    {
        KillTimer(CDTIME);
    }
    CoUnTDown --;
    return 1;
}
Come on guys , where are all the awesome scripters gone, i'm sure they can help me i got 3threads unanswered and can't solve those problems, cmon guys..
Reply
#2

the string is simply to small sized:
Код:
new str[10];
replace the 10 with a 16. should fit...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)