Hallo mein Scoretextdraw wird nur bei ID 0 angezeigt?! Warum?
new Text:textdraw[MAX_PLAYERS];
OnPlayerConnect
new buffer[64];
format(buffer, 64,"Score: %d",GetPlayerScore(playerid));
textdraw[playerid] = TextDrawCreate(492.000000, 1.000000,buffer);
TextDrawFont(textdraw[playerid],3);
TextDrawLetterSize(textdraw[playerid],0.52,2.29999);
TextDrawSetShadow(textdraw[playerid],1);
TextDrawColor(textdraw[playerid],0xFFDC00FF);
TextDrawSetOutline(textdraw[playerid],1);
OnPlayerDisconnect
TextDrawHideForPlayer(playerid, textdraw[playerid]);
Public
public ScoreUpdate(playerid)
{
new textstring[41];
format(textstring, sizeof(textstring), "Score: %d",GetPlayerScore(playerid));
TextDrawSetString(textdraw[playerid], textstring);
TextDrawShowForPlayer(playerid, textdraw[playerid]);
}
Wer hat 'ne Idee?