Nabend Com!
Ich habe ein Problem mit meinem Textdraw. Es soll nämlich das Level (Score) auslesen.
Mein Score ingame ist 3, doch das Textdraw zeigt es so an: "Level: 0".
Hier mal der Code:
new tdstring[64];
format(tdstring,sizeof(tdstring),"Level: %i",GetPlayerScore(playerid));
StatisticBox = CreatePlayerTextDraw(playerid,490.000000, 320.000000, tdstring);
PlayerTextDrawShow(playerid,StatisticBox);
PlayerTextDrawBackgroundColor(playerid,StatisticBox, 255);
PlayerTextDrawFont(playerid,StatisticBox, 3);
PlayerTextDrawLetterSize(playerid,StatisticBox, 0.600000, 2.000000);
PlayerTextDrawColor(playerid,StatisticBox, -1);
PlayerTextDrawSetOutline(playerid,StatisticBox, 1);
PlayerTextDrawSetProportional(playerid,StatisticBox, 1);
PlayerTextDrawSetSelectable(playerid,StatisticBox, 0);