31.01.2011, 21:53
hi,
why this textdraw just doesnt change?
I want to show the scoreboard at the end of a round with the RoundKills and Deaths.
It just says my name but kills and deaths stay 0 and 0 all the time.
Wheres the problem?
Pls help once again
why this textdraw just doesnt change?
I want to show the scoreboard at the end of a round with the RoundKills and Deaths.
pawn Код:
new RoundDeaths[MAX_PLAYERS];
new RoundKills[MAX_PLAYERS];
//OnGameModeInit
My TextDraw is created here...
//OnPlayerDeath
RoundDeaths[playerid]++;
RoundKills[killerid]++;
//OnPlayerDisconnect
RoundDeaths[playerid] = 0;
RoundKills[playerid] = 0;
////My round changing function///
ShowScoreBoardOnEnd(playerid);
//my stock function
stock ShowScoreBoardOnEnd(playerid)
{
GetPlayerName(TotalPlayersEnd[0], string, sizeof(string));
format(string, sizeof(string), "~r~1. ~w~%s ~r~%d ~b~%d", string,RoundsKills[playerid],RoundDeaths[playerid]);
TextDrawShowForAll(RoundEndStats1);
TextDrawSetString(Text:RoundEndStats1, string);
}
Wheres the problem?
Pls help once again