Verwendung: Textdraw[playerid]
Wo muss das jetzt hin? Muss das mit da hin?
Geldlabel[playerid] = TextDrawCreate(496.000000, 79.000000, "Geld");
Ich hab das jetzt so gemacht
new Text:Geldlabel[MAX_PLAYERS];
new Text:BoxG1[MAX_PLAYERS];
new Text:BoxG2[MAX_PLAYERS];
new Text:BoxG3[MAX_PLAYERS];
new Text:BoxG4[MAX_PLAYERS];
EDIT:
Also ich hab jetzt das mit PlayerTestDraw gemacht aber jetzt updatet der Timer nicht.
hier das was ich Verändert habe:
//Geld
new PlayerText:Geldlabel[MAX_PLAYERS];
new PlayerText:BoxG1[MAX_PLAYERS];
new PlayerText:BoxG2[MAX_PLAYERS];
new PlayerText:BoxG3[MAX_PLAYERS];
new PlayerText:BoxG4[MAX_PLAYERS];
//OnGameModeInit
SetTimer("GeldTimer",1000,1);
//__________________________ TextDraw Geld __________________________
Geldlabel[playerid] = CreatePlayerTextDraw(playerid,496.000000,79.000000,"Geld");
PlayerTextDrawBackgroundColor(playerid,Geldlabel[playerid],-1);
PlayerTextDrawFont(playerid,Geldlabel[playerid],2);
PlayerTextDrawLetterSize(playerid,Geldlabel[playerid],0.500000,2.100000);
PlayerTextDrawColor(playerid,Geldlabel[playerid], -1);
PlayerTextDrawSetOutline(playerid,Geldlabel[playerid],0);
PlayerTextDrawSetProportional(playerid,Geldlabel[playerid],1);
PlayerTextDrawSetShadow(playerid,Geldlabel[playerid],0);
PlayerTextDrawUseBox(playerid,Geldlabel[playerid],1);
PlayerTextDrawBoxColor(playerid,Geldlabel[playerid],255);
PlayerTextDrawTextSize(playerid,Geldlabel[playerid],640.000000,0.000000);
BoxG1[playerid] = CreatePlayerTextDraw(playerid,496.000000, 77.000000," ");
PlayerTextDrawBackgroundColor(playerid,BoxG1[playerid], 255);
PlayerTextDrawFont(playerid,BoxG1[playerid], 1);
PlayerTextDrawLetterSize(playerid,BoxG1[playerid], 0.500000, -0.300000);
PlayerTextDrawColor(playerid,BoxG1[playerid], -1);
PlayerTextDrawSetOutline(playerid,BoxG1[playerid], 0);
PlayerTextDrawSetProportional(playerid,BoxG1[playerid], 1);
PlayerTextDrawSetShadow(playerid,BoxG1[playerid], 1);
PlayerTextDrawUseBox(playerid,BoxG1[playerid], 1);
PlayerTextDrawBoxColor(playerid,BoxG1[playerid], -1);
PlayerTextDrawTextSize(playerid,BoxG1[playerid], 638.000000, 0.000000);
BoxG2[playerid] = CreatePlayerTextDraw(playerid,496.000000, 77.000000, "L");
PlayerTextDrawBackgroundColor(playerid,BoxG2[playerid], 255);
PlayerTextDrawFont(playerid,BoxG2[playerid], 1);
PlayerTextDrawLetterSize(playerid,BoxG2[playerid], 0.000000, 2.599999);
PlayerTextDrawColor(playerid,BoxG2[playerid], -1);
PlayerTextDrawSetOutline(playerid,BoxG2[playerid], 0);
PlayerTextDrawSetProportional(playerid,BoxG2[playerid], 1);
PlayerTextDrawSetShadow(playerid,BoxG2[playerid], 1);
PlayerTextDrawUseBox(playerid,BoxG2[playerid], 1);
PlayerTextDrawBoxColor(playerid,BoxG2[playerid], -1);
PlayerTextDrawTextSize(playerid,BoxG2[playerid], 491.0, 0.0);
BoxG3[playerid] = CreatePlayerTextDraw(playerid,494.0, 101.0, " ");
PlayerTextDrawBackgroundColor(playerid,BoxG3[playerid], 255);
PlayerTextDrawFont(playerid,BoxG3[playerid], 1);
PlayerTextDrawLetterSize(playerid,BoxG3[playerid], 0.5, -0.3);
PlayerTextDrawColor(playerid,BoxG3[playerid], -1);
PlayerTextDrawSetOutline(playerid,BoxG3[playerid], 0);
PlayerTextDrawSetProportional(playerid,BoxG3[playerid], 1);
PlayerTextDrawSetShadow(playerid,BoxG3[playerid], 1);
PlayerTextDrawUseBox(playerid,BoxG3[playerid], 1);
PlayerTextDrawBoxColor(playerid,BoxG3[playerid], -1);
PlayerTextDrawTextSize(playerid,BoxG3[playerid], 638.0, 0.0);
BoxG4[playerid] = CreatePlayerTextDraw(playerid,646.0, 77.0, "L");
PlayerTextDrawBackgroundColor(playerid,BoxG4[playerid], 255);
PlayerTextDrawFont(playerid,BoxG4[playerid], 1);
PlayerTextDrawLetterSize(playerid,BoxG4[playerid], 0.0, 2.599999);
PlayerTextDrawColor(playerid,BoxG4[playerid], -1);
PlayerTextDrawSetOutline(playerid,BoxG4[playerid], 0);
PlayerTextDrawSetProportional(playerid,BoxG4[playerid], 1);
PlayerTextDrawSetShadow(playerid,BoxG4[playerid], 1);
PlayerTextDrawUseBox(playerid,BoxG4[playerid], 1);
PlayerTextDrawBoxColor(playerid,BoxG4[playerid], -1);
PlayerTextDrawTextSize(playerid,BoxG4[playerid], 636.0, 0.0);
PlayerTextDrawHide(playerid, Geldlabel[playerid]);
PlayerTextDrawHide(playerid, BoxG1[playerid]);
PlayerTextDrawHide(playerid, BoxG2[playerid]);
PlayerTextDrawHide(playerid, BoxG3[playerid]);
PlayerTextDrawHide(playerid, BoxG4[playerid]);
//Geld
PlayerTextDrawShow(playerid, Geldlabel[playerid]);
PlayerTextDrawShow(playerid, BoxG1[playerid]);
PlayerTextDrawShow(playerid, BoxG2[playerid]);
PlayerTextDrawShow(playerid, BoxG3[playerid]);
PlayerTextDrawShow(playerid, BoxG4[playerid]);
GeldTimer(playerid);
public GeldTimer(playerid)
{
new string[124];
new vgeld[MAX_PLAYERS];
vgeld[playerid] = sInfo[playerid][cash];
format(string, sizeof(string), "%d ~g~EUR", vgeld[playerid]);
PlayerTextDrawSetString(playerid,Geldlabel[playerid],string);
}