Ich nochmals :o
Habe nur noch ein Problem meine Stats Anzeige will nich so ganz ^^...
new Text:Stats;
public OnGameModeInit()
SetTimer("StatsAnzeige",1000,true);
Stats = TextDrawCreate(1.000000, 433.000000, " ~w~~h~"ServerName" ~>~~b~Kills: ~r~- ~>~~b~Deaths: ~r~-~>~~b~Score: ~r~-");
TextDrawBackgroundColor(Stats, 255);
TextDrawFont(Stats, 2);
TextDrawLetterSize(Stats, 0.300000, 1.500000);
TextDrawColor(Stats, -1);
TextDrawSetOutline(Stats, 1);
TextDrawSetProportional(Stats, 1);
TextDrawUseBox(Stats, 1);
TextDrawBoxColor(Stats, 168430155);
TextDrawTextSize(Stats, 638.000000, 0.000000);
forward StatsAnzeige();
public StatsAnzeige()
{
new string[128],
Score,
Kills,
Deaths;
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
Score = GetPlayerScore(playerid),
Kills = GetPVarInt(playerid,"Kills"),
Deaths = GetPVarInt(playerid,"Deaths");
format(string,sizeof string," ~w~~h~"ServerName" ~>~~b~Kills: ~r~%d ~>~~b~Deaths: ~r~%d ~>~~b~Score: ~r~%d",Kills, Deaths, Score);
TextDrawShowForPlayer(playerid, Stats);
TextDrawSetString(Stats, string);
}
return 1;
}
Naja, es passiert nichts, sprich: es werden keine werte angezeigt, oder geupdatet ^^...
Bin für jede Hilfe dankbar!
Lg