Hallo,
ich brauche einmal eure hilfe, ich bin akutell dabei meine Geldanzeige als Textdraw aus zugeben, weil ich nicht so auf die Standart Geld Anzeige stehe..
PS: Ich beschäftige mich das erste mal so mit Textdraws, deshalb bin ich darin noch neu
Fehlermeldungen:
Zitat
(5322) : error 017: undefined symbol "playerid"
(5323) : error 017: undefined symbol "playerid"
(5324) : error 017: undefined symbol "playerid"
(5325) : error 017: undefined symbol "playerid"
(5326) : error 017: undefined symbol "playerid"
(5327) : error 017: undefined symbol "playerid"
(5328) : error 017: undefined symbol "playerid"
(5329) : error 017: undefined symbol "playerid"
(5330) : error 017: undefined symbol "playerid"
(5331) : error 017: undefined symbol "playerid"
(5332) : error 017: undefined symbol "playerid"
(5333) : error 017: undefined symbol "playerid"
Alles anzeigen
Mein Textdraw:
Geld2[playerid] = CreatePlayerTextDraw(500.000000, 81.000000, "100 euro"); //5322
PlayerTextDrawBackgroundColor(Geld2[playerid], 255); //5323
PlayerTextDrawFont(playerid,Geld2[playerid], 1); //5324
PlayerTextDrawLetterSize(Geld2[playerid], 0.320000, 1.400000); //5325
PlayerTextDrawColor(Geld2[playerid], -1); //5326
PlayerTextDrawSetOutline(Geld2[playerid], 0); //5327
PlayerTextDrawSetProportional(Geld2[playerid], 1); //5328
PlayerTextDrawSetShadow(Geld2[playerid], 1); //5329
PlayerTextDrawUseBox(Geld2[playerid], 1); //5330
PlayerTextDrawBoxColor(Geld2[playerid], 255); //5331
PlayerTextDrawTextSize(Geld2[playerid], 609.000000, 2.000000); //5332
PlayerTextDrawSetSelectable(Geld2[playerid], 0); //5333
Mein Stock(falls nötig):
stock UpdatePlayerMoneyTextdraw(playerid)
{
new m = GetPlayerMoney(playerid), str[50];
if(m == 0) format(str, sizeof str, "~g~00000000");
else if(m < 10 && m > 0) format(str, sizeof str, "~g~0000000%d euro", m);
else if(m < 100 && m >= 10) format(str, sizeof str, "~g~000000%d euro", m);
else if(m < 1000 && m >= 100) format(str, sizeof str, "~g~00000%d euro", m);
else if(m < 10000 && m >= 1000) format(str, sizeof str, "~g~0000%d euro", m);
else if(m < 100000 && m >= 10000) format(str, sizeof str, "~g~000%d euro", m);
else if(m < 1000000 && m >= 10000) format(str, sizeof str, "~g~00%d euro", m);
else if(m < 10000000 && m >= 1000000) format(str, sizeof str, "~g~0%d euro", m);
else if(m < 100000000 && m >= 10000000) format(str, sizeof str, "~g~%d euro", m);
else format(str, sizeof str, "~g~%d euro", m);
TextDrawSetString(Geld2[playerid], str);
return 1;
}