Gametext of countdown problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Gametext of countdown problem (
/showthread.php?tid=144302)
Gametext of countdown problem -
0ne - 26.04.2010
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..
Re: Gametext of countdown problem -
Babul - 26.04.2010
the string is simply to small sized:
replace the 10 with a 16. should fit...