Hallo zusammen,
ich habe heute mal ein kleinen Payday versucht zu machen. Allerdings geht er nicht richtig. Und zwar geht er nicht nach 4 Sekunden weg (Hab ich nicht eingebaut weil ich nicht weiß wie es geht), und die Uhrzeit liest es nicht aus. Kann mir jemand Helfen ?
Payday geht nicht richtig
- TheTutoFreak
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
Du müsstest uns schon den Code dazu schicken.
Und zwar geht er nicht nach 4 Sekunden weg (Hab ich nicht eingebaut weil ich nicht weiß wie es geht),
Was geht nach 4 Sekunden nicht weg? Wenn du es nicht eingebaut hast, kann auch nichts passieren -
Ich habe doch gewusst ich habe was vergessen:
Spoiler anzeigen
public Payday()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new string[128];
new Hour,Minute;
format(string,sizeof(string),"SERVER: Es ist %d:0%d Uhr",Hour,Minute);
SendClientMessageToAll(Weis,string);
GameTextForPlayer(i,"~g~PAYDAY",3000,1);
Textdraw0 = TextDrawCreate(15.000000, 110.000000, "PayDay");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.479999, 1.299998);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, -16776961);
TextDrawTextSize(Textdraw0, 197.000000, 67.000000);Spoiler anzeigen Textdraw1 = TextDrawCreate(161.500000, 111.900001, "00/04");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.200000, 0.699998);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);Spoiler anzeigen Textdraw2 = TextDrawCreate(15.000000, 127.000000, "Lohn:");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 65535);
TextDrawTextSize(Textdraw2, 197.000000, 37.000000);Spoiler anzeigen Textdraw3 = TextDrawCreate(15.000000, 139.000000, "Zinsen:");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 65535);
TextDrawTextSize(Textdraw3, 197.000000, 37.000000);Spoiler anzeigen Textdraw4 = TextDrawCreate(15.000000, 151.000000, "Steuern:");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 65535);
TextDrawTextSize(Textdraw4, 197.000000, 37.000000);Spoiler anzeigen Textdraw5 = TextDrawCreate(15.000000, 163.000000, "Promille:");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, 65535);
TextDrawTextSize(Textdraw5, 197.000000, 37.000000);Spoiler anzeigen Textdraw6 = TextDrawCreate(15.000000, 175.000000, "Kontoalt:");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 65535);
TextDrawTextSize(Textdraw6, 197.000000, 37.000000);Spoiler anzeigen Textdraw7 = TextDrawCreate(15.000000, 187.000000, "Kontoneu:");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 65535);
TextDrawTextSize(Textdraw7, 197.000000, 37.000000);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Textdraw6);
TextDrawShowForPlayer(i, Textdraw7);
return 1;
}
}
return 1;
}
-
Spoiler anzeigen new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
// ^ Global oben im ScriptSpoiler anzeigen public Payday()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new string[128];
new Hour,Minute;
gettime(Hour,Minute);
format(string,sizeof(string),"SERVER: Es ist %d:0%d Uhr",Hour,Minute);
SendClientMessageToAll(Weis,string);
GameTextForPlayer(i,"~g~PAYDAY",3000,1);
Textdraw0 = TextDrawCreate(15.000000, 110.000000, "PayDay");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.479999, 1.299998);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, -16776961);
TextDrawTextSize(Textdraw0, 197.000000, 67.000000);Spoiler anzeigen Textdraw1 = TextDrawCreate(161.500000, 111.900001, "00/04");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.200000, 0.699998);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);Spoiler anzeigen Textdraw2 = TextDrawCreate(15.000000, 127.000000, "Lohn:");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 65535);
TextDrawTextSize(Textdraw2, 197.000000, 37.000000);Spoiler anzeigen Textdraw3 = TextDrawCreate(15.000000, 139.000000, "Zinsen:");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 65535);
TextDrawTextSize(Textdraw3, 197.000000, 37.000000);Spoiler anzeigen Textdraw4 = TextDrawCreate(15.000000, 151.000000, "Steuern:");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 65535);
TextDrawTextSize(Textdraw4, 197.000000, 37.000000);Spoiler anzeigen Textdraw5 = TextDrawCreate(15.000000, 163.000000, "Promille:");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, 65535);
TextDrawTextSize(Textdraw5, 197.000000, 37.000000);Spoiler anzeigen Textdraw6 = TextDrawCreate(15.000000, 175.000000, "Kontoalt:");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 65535);
TextDrawTextSize(Textdraw6, 197.000000, 37.000000);Spoiler anzeigen Textdraw7 = TextDrawCreate(15.000000, 187.000000, "Kontoneu:");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 65535);
TextDrawTextSize(Textdraw7, 197.000000, 37.000000);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Textdraw6);
TextDrawShowForPlayer(i, Textdraw7);
}
}
return 1;
}
Du musstest die Zeit auch noch mit gettime auslesen. Die Deklarationen solltest du besser oben im Script schreiben, damit du sie noch verwenden kannst, außerhalb vom Callback "Payday".
Ebenfalls musste ein "return 1;" aus der Schleife entfernt werden, da ansonsten nur der erste Spieler einen Payday bekommen würde.Was meinst du nun mit den 4 Sekunden?
-
Jetzt habe ich es so:
//Globale Variablen
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
Spoiler anzeigen
public Payday()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new string[128];
new Hour,Minute;
format(string,sizeof(string),"SERVER: Es ist %d:0%d Uhr",gettime(Hour,Minute));
SendClientMessageToAll(Weis,string);
GameTextForPlayer(i,"~g~PAYDAY",3000,1);
Textdraw0 = TextDrawCreate(15.000000, 110.000000, "PayDay");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.479999, 1.299998);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, -16776961);
TextDrawTextSize(Textdraw0, 197.000000, 67.000000);Spoiler anzeigen Textdraw1 = TextDrawCreate(161.500000, 111.900001, "00/04");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.200000, 0.699998);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);Spoiler anzeigen Textdraw2 = TextDrawCreate(15.000000, 127.000000, "Lohn:");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 65535);
TextDrawTextSize(Textdraw2, 197.000000, 37.000000);Spoiler anzeigen Textdraw3 = TextDrawCreate(15.000000, 139.000000, "Zinsen:");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 65535);
TextDrawTextSize(Textdraw3, 197.000000, 37.000000);Spoiler anzeigen Textdraw4 = TextDrawCreate(15.000000, 151.000000, "Steuern:");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 65535);
TextDrawTextSize(Textdraw4, 197.000000, 37.000000);Spoiler anzeigen Textdraw5 = TextDrawCreate(15.000000, 163.000000, "Promille:");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, 65535);
TextDrawTextSize(Textdraw5, 197.000000, 37.000000);Spoiler anzeigen Textdraw6 = TextDrawCreate(15.000000, 175.000000, "Kontoalt:");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 65535);
TextDrawTextSize(Textdraw6, 197.000000, 37.000000);Spoiler anzeigen Textdraw7 = TextDrawCreate(15.000000, 187.000000, "Kontoneu:");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 65535);
TextDrawTextSize(Textdraw7, 197.000000, 37.000000);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Textdraw6);
TextDrawShowForPlayer(i, Textdraw7);
return 1;
}
}
return 1;
}
Aber es geht immer noch nicht. -
Du hast meinen Code auch falsch übernommen.
Du musst gettime vor dem format noch benutzen, denn in "Hour" und "Minute" wird dann jeweils der Teil gespeichert. -
Was macht ihr da eigentlich?
Man kann doch nicht in der Schleife bei jedem Payday X mal MAX_PLAYERS-Textdraws erstellen. Da ist nach ein paar mal das Limit aber sowas von erreicht.public Payday()
{
new string[128];
new hour,minute, second;
gettime(hour, minute, second);
format(string,sizeof(string),"SERVER: Es ist %d:%02d:%02d Uhr",hour, minute, second);
SendClientMessageToAll(Weis,string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GameTextForPlayer(i,"~g~PAYDAY",3000,1);
}
}
return 1;
}Die Textdraws muss man als PlayerTextdraw bei OnPlayerConnect erstellen.
http://wiki.sa-mp.com/wiki/CreatePlayerTextDrawDie ganzen Funktionen für das Layout der Textdraws sind dabei, du musst nämlich alle deine Textdraw zu PlayerTextdraws ändern.
-
Ah danke jetzt klappt es aber wie kann ich die Textdraws dann nach 4 Sekunden wieder entfernen ?
-
Ah danke jetzt klappt es aber wie kann ich die Textdraws dann nach 4 Sekunden wieder entfernen ?
Les dir mal durch was ich geschrieben habe. Dein Code mag zwar auf den ersten Blick funktionieren, aber wenn du einen zweiten Payday bekommst haut es dir alles über den Haufen. Das tut vielleicht, zeitweise, ist aber keineswegs richtig.
PlayerTextdraws ist das Stichwort. -
Und wie erstelle ich die nur dann wenn Payday ist und wenn keiner ist sind die Weg ?
-
-
http://wiki.sa-mp.com/wiki/PlayerTextDrawShow
Beim PayDay
-> SetTimer mit 4000ms
-> http://wiki.sa-mp.com/wiki/PlayerTextDrawHideJeweils mit einer Schleife durch alle Spieler, außer beim Timer.
-
Mein Payday sieht jetzt so aus:
Spoiler anzeigen
public Payday()
{
new string[128];
new hour,minute, second;
gettime(hour, minute,second);
format(string,sizeof(string),"SERVER: Es ist %d:d:d Uhr",hour, minute, second);
SendClientMessageToAll(Weis,string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GameTextForPlayer(i,"~g~PAYDAY",3000,1);
PlayerTextDrawShow(i, Textdraw0);
PlayerTextDrawShow(i, Textdraw1);
PlayerTextDrawShow(i, Textdraw2);
PlayerTextDrawShow(i, Textdraw3);
PlayerTextDrawShow(i, Textdraw4);
PlayerTextDrawShow(i, Textdraw5);
PlayerTextDrawShow(i, Textdraw6);
PlayerTextDrawShow(i, Textdraw7);
}
}
return 1;
}
Bekomme aber diese Warnings:
Spoiler anzeigen
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(927) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(928) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(929) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(930) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(931) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(932) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(933) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(934) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseSpoiler anzeigen 8 Warnings.
-
Hast du die Textdraws bei OnPlayerConnect mit
http://wiki.sa-mp.com/wiki/CreatePlayerTextDraw
erstellt?Die Deklarationen sind dann auch nicht mehr mit "Text:", sondern:
new PlayerText:Textdraw0[MAX_PLAYERS];Dein Payday würde dann so aussehen:
public Payday()
{
new string[128];
new hour,minute, second;
gettime(hour, minute,second);
format(string,sizeof(string),"SERVER: Es ist %d:%02d:%02d Uhr",hour, minute, second);
SendClientMessageToAll(Weis,string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GameTextForPlayer(i,"~g~PAYDAY",3000,1);
PlayerTextDrawShow(i, Textdraw0[i]);
PlayerTextDrawShow(i, Textdraw1[i]);
PlayerTextDrawShow(i, Textdraw2[i]);
PlayerTextDrawShow(i, Textdraw3[i]);
PlayerTextDrawShow(i, Textdraw4[i]);
PlayerTextDrawShow(i, Textdraw5[i]);
PlayerTextDrawShow(i, Textdraw6[i]);
PlayerTextDrawShow(i, Textdraw7[i]);
}
}
return 1;
} -
So, jetzt ist das bei OnPlayerConnect:
Spoiler anzeigen
//Payday
Textdraw0 = TextDrawCreate(15.000000, 110.000000, "PayDay");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.479999, 1.299998);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, -16776961);
TextDrawTextSize(Textdraw0, 197.000000, 67.000000);Spoiler anzeigen Textdraw1 = TextDrawCreate(161.500000, 111.900001, "00/04");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.200000, 0.699998);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);Spoiler anzeigen Textdraw2 = TextDrawCreate(15.000000, 127.000000, "Lohn:");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 65535);
TextDrawTextSize(Textdraw2, 197.000000, 37.000000);Spoiler anzeigen Textdraw3 = TextDrawCreate(15.000000, 139.000000, "Zinsen:");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 65535);
TextDrawTextSize(Textdraw3, 197.000000, 37.000000);Spoiler anzeigen Textdraw4 = TextDrawCreate(15.000000, 151.000000, "Steuern:");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 65535);
TextDrawTextSize(Textdraw4, 197.000000, 37.000000);Spoiler anzeigen Textdraw5 = TextDrawCreate(15.000000, 163.000000, "Promille:");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, 65535);
TextDrawTextSize(Textdraw5, 197.000000, 37.000000);Spoiler anzeigen Textdraw6 = TextDrawCreate(15.000000, 175.000000, "Kontoalt:");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 65535);
TextDrawTextSize(Textdraw6, 197.000000, 37.000000);Spoiler anzeigen Textdraw7 = TextDrawCreate(15.000000, 187.000000, "Kontoneu:");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 65535);
TextDrawTextSize(Textdraw7, 197.000000, 37.000000);
Und gibt diese Errors:
Spoiler anzeigen
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(173) : error 033: array must be indexed (variable "Textdraw0")
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(174) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(175) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(176) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(177) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(178) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(179) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(180) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(181) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(182) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(183) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(185) : error 033: array must be indexed (variable "Textdraw1")
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(186) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(187) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(188) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(189) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(190) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(191) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(192) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(194) : error 033: array must be indexed (variable "Textdraw2")
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(195) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(196) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(197) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(198) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(199) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(200) : error 035: argument type mismatch (argument 1)Spoiler anzeigen Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseSpoiler anzeigen 26 Errors. -
Hast du die Textdraws bei OnPlayerConnect mit
http://wiki.sa-mp.com/wiki/CreatePlayerTextDraw
erstellt?
^ ^Das hast du nicht gemacht.
Du musst, wie ich bereits gesagt habe, alle deine Textdraws zu PlayerTextdraws umändern.Der Code sieht dann etwas so aus wie hier, in Post 5: Probleme mit Geld Anzeige Textdraw
-
Jetzt sieht das ganze bei OnPlayerConnect so aus:
Pawno Code
//Payday
Textdraw0 = CreatePlayerTextDraw(15.000000, 110.000000, "PayDay");
PlayerTextDrawBackgroundColor(Textdraw0, 255);
PlayerTextDrawFont(Textdraw0, 2);
PlayerTextDrawLetterSize(Textdraw0, 0.479999, 1.299998);
PlayerTextDrawColor(Textdraw0, -1);
PlayerTextDrawSetOutline(Textdraw0, 0);
PlayerTextDrawSetProportional(Textdraw0, 1);
PlayerTextDrawSetShadow(Textdraw0, 1);
PlayerTextDrawUseBox(Textdraw0, 1);
PlayerTextDrawBoxColor(Textdraw0, -16776961);
PlayerTextDrawTextSize(Textdraw0, 197.000000, 67.000000);Pawno Code Textdraw1 = CreatePlayerTextDraw(161.500000, 111.900001, "00/04");
PlayerTextDrawBackgroundColor(Textdraw1, 255);
PlayerTextDrawFont(Textdraw1, 1);
PlayerTextDrawLetterSize(Textdraw1, 0.200000, 0.699998);
PlayerTextDrawColor(Textdraw1, -1);
PlayerTextDrawSetOutline(Textdraw1, 0);
PlayerTextDrawSetProportional(Textdraw1, 1);
PlayerTextDrawSetShadow(Textdraw1, 1);Pawno Code Textdraw2 = CreatePlayerTextDraw(15.000000, 127.000000, "Lohn:");
PlayerTextDrawBackgroundColor(Textdraw2, 255);
PlayerTextDrawFont(Textdraw2, 1);
PlayerTextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw2, -1);
PlayerTextDrawSetOutline(Textdraw2, 0);
PlayerTextDrawSetProportional(Textdraw2, 1);
PlayerTextDrawSetShadow(Textdraw2, 1);
PlayerTextDrawUseBox(Textdraw2, 1);
PlayerTextDrawBoxColor(Textdraw2, 65535);
PlayerTextDrawTextSize(Textdraw2, 197.000000, 37.000000);Pawno Code Textdraw3 = CreatePlayerTextDraw(15.000000, 139.000000, "Zinsen:");
PlayerTextDrawBackgroundColor(Textdraw3, 255);
PlayerTextDrawFont(Textdraw3, 1);
PlayerTextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw3, -1);
PlayerTextDrawSetOutline(Textdraw3, 0);
PlayerTextDrawSetProportional(Textdraw3, 1);
PlayerTextDrawSetShadow(Textdraw3, 1);
PlayerTextDrawUseBox(Textdraw3, 1);
PlayerTextDrawBoxColor(Textdraw3, 65535);
PlayerTextDrawTextSize(Textdraw3, 197.000000, 37.000000);Pawno Code Textdraw4 = CreatePlayerTextDraw(15.000000, 151.000000, "Steuern:");
PlayerTextDrawBackgroundColor(Textdraw4, 255);
PlayerTextDrawFont(Textdraw4, 1);
PlayerTextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw4, -1);
PlayerTextDrawSetOutline(Textdraw4, 0);
PlayerTextDrawSetProportional(Textdraw4, 1);
PlayerTextDrawSetShadow(Textdraw4, 1);
PlayerTextDrawUseBox(Textdraw4, 1);
PlayerTextDrawBoxColor(Textdraw4, 65535);
PlayerTextDrawTextSize(Textdraw4, 197.000000, 37.000000);Pawno Code Textdraw5 = CreatePlayerTextDraw(15.000000, 163.000000, "Promille:");
PlayerTextDrawBackgroundColor(Textdraw5, 255);
PlayerTextDrawFont(Textdraw5, 1);
PlayerTextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw5, -1);
PlayerTextDrawSetOutline(Textdraw5, 0);
PlayerTextDrawSetProportional(Textdraw5, 1);
PlayerTextDrawSetShadow(Textdraw5, 1);
PlayerTextDrawUseBox(Textdraw5, 1);
PlayerTextDrawBoxColor(Textdraw5, 65535);
PlayerTextDrawTextSize(Textdraw5, 197.000000, 37.000000);Pawno Code Textdraw6 = CreatePlayerTextDraw(15.000000, 175.000000, "Kontoalt:");
PlayerTextDrawBackgroundColor(Textdraw6, 255);
PlayerTextDrawFont(Textdraw6, 1);
PlayerTextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw6, -1);
PlayerTextDrawSetOutline(Textdraw6, 0);
PlayerTextDrawSetProportional(Textdraw6, 1);
PlayerTextDrawSetShadow(Textdraw6, 1);
PlayerTextDrawUseBox(Textdraw6, 1);
PlayerTextDrawBoxColor(Textdraw6, 65535);
PlayerTextDrawTextSize(Textdraw6, 197.000000, 37.000000);Pawno Code Textdraw7 = CreatePlayerTextDraw(15.000000, 187.000000, "Kontoneu:");
PlayerTextDrawBackgroundColor(Textdraw7, 255);
PlayerTextDrawFont(Textdraw7, 1);
PlayerTextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw7, -1);
PlayerTextDrawSetOutline(Textdraw7, 0);
PlayerTextDrawSetProportional(Textdraw7, 1);
PlayerTextDrawSetShadow(Textdraw7, 1);
PlayerTextDrawUseBox(Textdraw7, 1);
PlayerTextDrawBoxColor(Textdraw7, 65535);
PlayerTextDrawTextSize(Textdraw7, 197.000000, 37.000000);
-
Ok, du kommst der Sache näher.
ALLE EDIT: TheTutoFreak:
Textdraw0
zu
Textdraw0[playerid]
ebenso für die anderen Zahlen.Die Deklarationen:
new PlayerText:Textdraw0[MAX_PLAYERS];
ebenso für die anderen Zahlen.Nicht vergessen, bei OnPlayerDisconnect die PlayerTextdraws zu löschen.
-
Das ganze sieht jetzt so aus:
Pawn Code
//Payday
Textdraw0[playerid] = CreatePlayerTextDraw(15.000000, 110.000000, "PayDay");
PlayerTextDrawBackgroundColor(Textdraw0, 255);
PlayerTextDrawFont(Textdraw0, 2);
PlayerTextDrawLetterSize(Textdraw0, 0.479999, 1.299998);
PlayerTextDrawColor(Textdraw0, -1);
PlayerTextDrawSetOutline(Textdraw0, 0);
PlayerTextDrawSetProportional(Textdraw0, 1);
PlayerTextDrawSetShadow(Textdraw0, 1);
PlayerTextDrawUseBox(Textdraw0, 1);
PlayerTextDrawBoxColor(Textdraw0, -16776961);
PlayerTextDrawTextSize(Textdraw0, 197.000000, 67.000000);Pawn Code Textdraw1[playerid] = CreatePlayerTextDraw(161.500000, 111.900001, "00/04");
PlayerTextDrawBackgroundColor(Textdraw1, 255);
PlayerTextDrawFont(Textdraw1, 1);
PlayerTextDrawLetterSize(Textdraw1, 0.200000, 0.699998);
PlayerTextDrawColor(Textdraw1, -1);
PlayerTextDrawSetOutline(Textdraw1, 0);
PlayerTextDrawSetProportional(Textdraw1, 1);
PlayerTextDrawSetShadow(Textdraw1, 1);Pawn Code Textdraw2[playerid] = CreatePlayerTextDraw(15.000000, 127.000000, "Lohn:");
PlayerTextDrawBackgroundColor(Textdraw2, 255);
PlayerTextDrawFont(Textdraw2, 1);
PlayerTextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw2, -1);
PlayerTextDrawSetOutline(Textdraw2, 0);
PlayerTextDrawSetProportional(Textdraw2, 1);
PlayerTextDrawSetShadow(Textdraw2, 1);
PlayerTextDrawUseBox(Textdraw2, 1);
PlayerTextDrawBoxColor(Textdraw2, 65535);
PlayerTextDrawTextSize(Textdraw2, 197.000000, 37.000000);Pawn Code Textdraw3[playerid] = CreatePlayerTextDraw(15.000000, 139.000000, "Zinsen:");
PlayerTextDrawBackgroundColor(Textdraw3, 255);
PlayerTextDrawFont(Textdraw3, 1);
PlayerTextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw3, -1);
PlayerTextDrawSetOutline(Textdraw3, 0);
PlayerTextDrawSetProportional(Textdraw3, 1);
PlayerTextDrawSetShadow(Textdraw3, 1);
PlayerTextDrawUseBox(Textdraw3, 1);
PlayerTextDrawBoxColor(Textdraw3, 65535);
PlayerTextDrawTextSize(Textdraw3, 197.000000, 37.000000);Pawn Code Textdraw4[playerid] = CreatePlayerTextDraw(15.000000, 151.000000, "Steuern:");
PlayerTextDrawBackgroundColor(Textdraw4, 255);
PlayerTextDrawFont(Textdraw4, 1);
PlayerTextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw4, -1);
PlayerTextDrawSetOutline(Textdraw4, 0);
PlayerTextDrawSetProportional(Textdraw4, 1);
PlayerTextDrawSetShadow(Textdraw4, 1);
PlayerTextDrawUseBox(Textdraw4, 1);
PlayerTextDrawBoxColor(Textdraw4, 65535);
PlayerTextDrawTextSize(Textdraw4, 197.000000, 37.000000);Pawn Code Textdraw5[playerid] = CreatePlayerTextDraw(15.000000, 163.000000, "Promille:");
PlayerTextDrawBackgroundColor(Textdraw5, 255);
PlayerTextDrawFont(Textdraw5, 1);
PlayerTextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw5, -1);
PlayerTextDrawSetOutline(Textdraw5, 0);
PlayerTextDrawSetProportional(Textdraw5, 1);
PlayerTextDrawSetShadow(Textdraw5, 1);
PlayerTextDrawUseBox(Textdraw5, 1);
PlayerTextDrawBoxColor(Textdraw5, 65535);
PlayerTextDrawTextSize(Textdraw5, 197.000000, 37.000000);Pawn Code Textdraw6[playerid] = CreatePlayerTextDraw(15.000000, 175.000000, "Kontoalt:");
PlayerTextDrawBackgroundColor(Textdraw6, 255);
PlayerTextDrawFont(Textdraw6, 1);
PlayerTextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw6, -1);
PlayerTextDrawSetOutline(Textdraw6, 0);
PlayerTextDrawSetProportional(Textdraw6, 1);
PlayerTextDrawSetShadow(Textdraw6, 1);
PlayerTextDrawUseBox(Textdraw6, 1);
PlayerTextDrawBoxColor(Textdraw6, 65535);
PlayerTextDrawTextSize(Textdraw6, 197.000000, 37.000000);Pawn Code Textdraw7[playerid] = CreatePlayerTextDraw(15.000000, 187.000000, "Kontoneu:");
PlayerTextDrawBackgroundColor(Textdraw7, 255);
PlayerTextDrawFont(Textdraw7, 1);
PlayerTextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
PlayerTextDrawColor(Textdraw7, -1);
PlayerTextDrawSetOutline(Textdraw7, 0);
PlayerTextDrawSetProportional(Textdraw7, 1);
PlayerTextDrawSetShadow(Textdraw7, 1);
PlayerTextDrawUseBox(Textdraw7, 1);
PlayerTextDrawBoxColor(Textdraw7, 65535);
PlayerTextDrawTextSize(Textdraw7, 197.000000, 37.000000);
-
Nicht vergessen bei den Textdraws überall playerid dazuzuschreiben
BSP
PlayerTextDrawBackgroundColor(Textdraw0, 255);
ZU
PlayerTextDrawBackgroundColor(playerid,Textdraw0[playerid], 255); -
Hier, ich hab's dir kurz gemacht, sonst schreiben wir nochmal 10 mal hin und her.
Dafür gibt es STRG+H, ich hab 30 Sekunden für alles gebraucht:Spoiler anzeigen //Payday
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 110.000000, "PayDay");
PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 2);
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.479999, 1.299998);
PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 1);
PlayerTextDrawUseBox(playerid, Textdraw0[playerid], 1);
PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], -16776961);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 197.000000, 67.000000);Spoiler anzeigen Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 161.500000, 111.900001, "00/04");
PlayerTextDrawBackgroundColor(playerid, Textdraw1[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw1[playerid], 1);
PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.200000, 0.699998);
PlayerTextDrawColor(playerid, Textdraw1[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw1[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 1);Spoiler anzeigen Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 127.000000, "Lohn:");
PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw2[playerid], 1);
PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw2[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 1);
PlayerTextDrawUseBox(playerid, Textdraw2[playerid], 1);
PlayerTextDrawBoxColor(playerid, Textdraw2[playerid], 65535);
PlayerTextDrawTextSize(playerid, Textdraw2[playerid], 197.000000, 37.000000);Spoiler anzeigen Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 139.000000, "Zinsen:");
PlayerTextDrawBackgroundColor(playerid, Textdraw3[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw3[playerid], 1);
PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw3[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 1);
PlayerTextDrawUseBox(playerid, Textdraw3[playerid], 1);
PlayerTextDrawBoxColor(playerid, Textdraw3[playerid], 65535);
PlayerTextDrawTextSize(playerid, Textdraw3[playerid], 197.000000, 37.000000);Spoiler anzeigen Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 151.000000, "Steuern:");
PlayerTextDrawBackgroundColor(playerid, Textdraw4[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw4[playerid], 1);
PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw4[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 1);
PlayerTextDrawUseBox(playerid, Textdraw4[playerid], 1);
PlayerTextDrawBoxColor(playerid, Textdraw4[playerid], 65535);
PlayerTextDrawTextSize(playerid, Textdraw4[playerid], 197.000000, 37.000000);Spoiler anzeigen Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 163.000000, "Promille:");
PlayerTextDrawBackgroundColor(playerid, Textdraw5[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw5[playerid], 1);
PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw5[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw5[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 1);
PlayerTextDrawUseBox(playerid, Textdraw5[playerid], 1);
PlayerTextDrawBoxColor(playerid, Textdraw5[playerid], 65535);
PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 197.000000, 37.000000);Spoiler anzeigen Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 175.000000, "Kontoalt:");
PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw6[playerid], 1);
PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw6[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 1);
PlayerTextDrawUseBox(playerid, Textdraw6[playerid], 1);
PlayerTextDrawBoxColor(playerid, Textdraw6[playerid], 65535);
PlayerTextDrawTextSize(playerid, Textdraw6[playerid], 197.000000, 37.000000);Spoiler anzeigen Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 187.000000, "Kontoneu:");
PlayerTextDrawBackgroundColor(playerid, Textdraw7[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw7[playerid], 1);
PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Textdraw7[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw7[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 1);
PlayerTextDrawUseBox(playerid, Textdraw7[playerid], 1);
PlayerTextDrawBoxColor(playerid, Textdraw7[playerid], 65535);
PlayerTextDrawTextSize(playerid, Textdraw7[playerid], 197.000000, 37.000000); -