Guten Morgen,
habe das Problem, dass die Schrift in der Box irgendwie hinter der Box steht, obwohl ich die Box als Erstes anzeigen lasse?
Code:
public OnPlayerSpawn(playerid)
{
PlayerTextDrawHide(playerid, pTextTime[playerid][0]);
PlayerTextDrawHide(playerid, pTextTime[playerid][1]);
PlayerTextDrawHide(playerid, pTextTime[playerid][2]);
PlayerTextDrawHide(playerid, pTextHUD[playerid][17]);
PlayerTextDrawShow(playerid, pTextHUD[playerid][17]);
for(new i; i<sizeof(Gangzones); i++)
{
new color;
if(Gangzones[i][gOwner] == 2){
color = RM;
}
if(Gangzones[i][gOwner] == 4){
color = GSF;
}
if(Gangzones[i][gOwner] == 0){
color = 0xFFFFFFFF;
}
GangZoneShowForPlayer(playerid, Gangzone[i], color);
}
new datumstring[100], uhrstring[100], framesstring[100], bankstring[100];
format(datumstring, sizeof(datumstring), "%02d.%02d.%04d", tag, monat, jahr);
gettime(stunde, minute, sekunde);
format(uhrstring, sizeof(uhrstring), "%02d:%02d:%02d", stunde, minute, sekunde);
format(framesstring ,sizeof(framesstring), "%i", pFPS[playerid]);
format(bankstring ,sizeof(bankstring), "%i $", Spieler[playerid][pBank]);
PlayerTextDrawSetString(playerid, pTextHUD[playerid][10], datumstring);
PlayerTextDrawSetString(playerid, pTextHUD[playerid][12], uhrstring);
PlayerTextDrawSetString(playerid, pTextHUD[playerid][14], framesstring);
PlayerTextDrawSetString(playerid, pTextHUD[playerid][16], bankstring);
PlayerTextDrawShow(playerid, pTextHUD[playerid][9]);
PlayerTextDrawShow(playerid, pTextHUD[playerid][10]);
PlayerTextDrawShow(playerid, pTextHUD[playerid][11]);
PlayerTextDrawShow(playerid, pTextHUD[playerid][12]);
PlayerTextDrawShow(playerid, pTextHUD[playerid][13]);
PlayerTextDrawShow(playerid, pTextHUD[playerid][14]);
PlayerTextDrawShow(playerid, pTextHUD[playerid][15]);
PlayerTextDrawShow(playerid, pTextHUD[playerid][16]);
pTextHUD[playerid][9] = CreatePlayerTextDraw(playerid, 501.000000, 128.000000, "Datum:");
PlayerTextDrawFont(playerid, pTextHUD[playerid][9], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][9], 0.210000, 0.899999);
PlayerTextDrawColor(playerid, pTextHUD[playerid][9], -1676273153);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][9], 1);
pTextHUD[playerid][10] = CreatePlayerTextDraw(playerid, 538.000000, 128.000000, "20.06.2015");
PlayerTextDrawFont(playerid, pTextHUD[playerid][10], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][10], 0.210000, 0.899999);
PlayerTextDrawColor(playerid, pTextHUD[playerid][10], -1);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][10], 1);
pTextHUD[playerid][11] = CreatePlayerTextDraw(playerid, 501.000000, 136.000000, "Uhrzeit:");
PlayerTextDrawFont(playerid, pTextHUD[playerid][11], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][11], 0.210000, 0.899999);
PlayerTextDrawColor(playerid, pTextHUD[playerid][11], -1676273153);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][11], 1);
pTextHUD[playerid][12] = CreatePlayerTextDraw(playerid, 538.000000, 136.000000, "16:00");
PlayerTextDrawFont(playerid, pTextHUD[playerid][12], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][12], 0.210000, 0.899999);
PlayerTextDrawColor(playerid, pTextHUD[playerid][12], -1);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][12], 1);
pTextHUD[playerid][13] = CreatePlayerTextDraw(playerid, 500.000000, 144.000000, "Frames:");
PlayerTextDrawFont(playerid, pTextHUD[playerid][13], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][13], 0.210000, 0.899999);
PlayerTextDrawColor(playerid, pTextHUD[playerid][13], -1676273153);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][13], 1);
pTextHUD[playerid][14] = CreatePlayerTextDraw(playerid, 538.000000, 144.000000, "102");
PlayerTextDrawFont(playerid, pTextHUD[playerid][14], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][14], 0.210000, 0.899999);
PlayerTextDrawColor(playerid, pTextHUD[playerid][14], -1);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][14], 1);
pTextHUD[playerid][15] = CreatePlayerTextDraw(playerid, 501.000000, 157.000000, "Bank:");
PlayerTextDrawFont(playerid, pTextHUD[playerid][15], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][15], 0.210000, 0.899999);
PlayerTextDrawColor(playerid, pTextHUD[playerid][15], -995731713);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][15], 1);
pTextHUD[playerid][16] = CreatePlayerTextDraw(playerid, 538.000000, 157.000000, "100000 $");
PlayerTextDrawFont(playerid, pTextHUD[playerid][16], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][16], 0.210000, 0.899999);
PlayerTextDrawColor(playerid, pTextHUD[playerid][16], -1);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][16], 1);
pTextHUD[playerid][17] = CreatePlayerTextDraw(playerid, 609.000000, 129.000000, "_");
PlayerTextDrawFont(playerid, pTextHUD[playerid][17], 1);
PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][17], 0.519999, 3.999998);
PlayerTextDrawColor(playerid, pTextHUD[playerid][17], -1);
PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][17], 0);
PlayerTextDrawSetProportional(playerid, pTextHUD[playerid][17], 1);
PlayerTextDrawSetShadow(playerid, pTextHUD[playerid][17], 0);
PlayerTextDrawUseBox(playerid, pTextHUD[playerid][17], 1);
PlayerTextDrawBoxColor(playerid, pTextHUD[playerid][17], 112);
PlayerTextDrawTextSize(playerid, pTextHUD[playerid][17], 497.000000, 0.000000);