Kills und Deaths Bleiben immer auf 0
new Text:StatsTextdraw[MAX_PLAYERS];
StatsTextdraw[playerid] = TextDrawCreate(2.000000, 424.000000, "-");
TextDrawBackgroundColor(StatsTextdraw[playerid], 255);
TextDrawFont(StatsTextdraw[playerid], 2);
TextDrawLetterSize(StatsTextdraw[playerid], 0.35,1.4);
TextDrawColor(StatsTextdraw[playerid], -1);
TextDrawSetOutline(StatsTextdraw[playerid], 1);
TextDrawSetProportional(StatsTextdraw[playerid], 1);
SetTimer("StatsTimer",1000,1);
public StatsTimer()
{
new str[128];
for(new i=0;i<MAX_PLAYERS;i++)
{
new str2[128];
format(str2, sizeof(str2), "Kills:%d Tode:%d",GetPVarInt(i,"Kills"),GetPVarInt(i,"Deaths"));
TextDrawSetString(StatsTextdraw,str2);
TextDrawShowForPlayer(i,StatsTextdraw);
SpielerSpeichern(i);
}
retrun1 ;
}