Sry habs vergessen das da ja nicht die Zeilen angezeigt werden
Textdraw0[playerid] = CreatePlayerTextDraw(15.000000, 110.000000, "PayDay");
Textdraw1[playerid] = CreatePlayerTextDraw(161.500000, 111.900001, "00/04");
Textdraw2[playerid] = CreatePlayerTextDraw(15.000000, 127.000000, "Lohn:");
Textdraw3[playerid] = CreatePlayerTextDraw(15.000000, 139.000000, "Zinsen:");
Textdraw4[playerid] = CreatePlayerTextDraw(15.000000, 151.000000, "Steuern:");
Textdraw5[playerid] = CreatePlayerTextDraw(15.000000, 163.000000, "Promille:");
Textdraw6[playerid] = CreatePlayerTextDraw(15.000000, 175.000000, "Kontoalt:");
Textdraw7[playerid] = CreatePlayerTextDraw(15.000000, 187.000000, "Kontoneu:");
Beiträge von TheTutoFreak
-
-
Danke jetzt sind es schon weniger Errors:
Spoiler anzeigen
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(173) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(173) : error 035: argument type mismatch (argument 3)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(185) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(185) : error 035: argument type mismatch (argument 3)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(194) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(194) : error 035: argument type mismatch (argument 3)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(206) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(206) : error 035: argument type mismatch (argument 3)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(218) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(218) : error 035: argument type mismatch (argument 3)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(230) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(230) : error 035: argument type mismatch (argument 3)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(242) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(242) : error 035: argument type mismatch (argument 3)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(254) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(254) : error 035: argument type mismatch (argument 3)
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(274) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(275) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(276) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(277) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(278) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(279) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(280) : warning 213: tag mismatch
C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(281) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseSpoiler anzeigen 8 Errors.Pawno Code
//Payday
Textdraw0[playerid] = CreatePlayerTextDraw(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);Pawno Code Textdraw1[playerid] = CreatePlayerTextDraw(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);Pawno Code Textdraw2[playerid] = CreatePlayerTextDraw(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);Pawno Code Textdraw3[playerid] = CreatePlayerTextDraw(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);Pawno Code Textdraw4[playerid] = CreatePlayerTextDraw(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);Pawno Code Textdraw5[playerid] = CreatePlayerTextDraw(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);Pawno Code Textdraw6[playerid] = CreatePlayerTextDraw(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);Pawno Code Textdraw7[playerid] = CreatePlayerTextDraw(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);
-
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);
-
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);
-
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. -
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.
-
Und wie erstelle ich die nur dann wenn Payday ist und wenn keiner ist sind die Weg ?
-
Ah danke jetzt klappt es aber wie kann ich die Textdraws dann nach 4 Sekunden wieder entfernen ?
-
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. -
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;
}
-
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 ? -
Oh sry ich habe das falsch verstanden. Ich dachte, er will alle gleichzeitig abfragen.
-
Ich bin mir nicht zu 100% sicher aber ich glaube das wird so gemacht un zwar mit einer for schleife:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(isAdmin(playerid,1))
{
if(ADuty[playerid] == 1)
{
//Das was du damit ausführen willst.
return 1;
}
}
} -
Hallo alle zusammen,
ich habe mich seit längerem mal wieder ein bisschen an AutoHotKey gesetzt um einen Keybinder für GTA SAMP zu machen. Allerdings speichert er mir nicht die eigenen Befehle wenn ich auf speichern klicke.Code
Alles anzeigenSpeichern: ;GuiControlGet,Var1 ;GuiControlGet,Var2 Gui, Submit, Nohide ; ALLE Controls mit einem Befehle auslesen Gui,Submit, NoHide IniWrite, %Text1% , settings.ini, Befehle, Text1 IniWrite, %Text2% , settings.ini, Befehle, Text2 IniWrite, %Text3% , settings.ini, Befehle, Text3 IniWrite, %Text4% , settings.ini, Befehle, Text4 IniWrite, %Text5% , settings.ini, Befehle, Text5 IniWrite, %Text6% , settings.ini, Befehle, Text6 IniWrite, %Text7% , settings.ini, Befehle, Text7 IniWrite, %Text8% , settings.ini, Befehle, Text8 IniWrite, %Text9% , settings.ini, Befehle, Text9 MsgBox, Eingaben wurden erfolgreich gespeichert! return GuiClose: IniWrite, %Text1% , settings.ini, Befehle, Text1 IniWrite, %Text2% , settings.ini, Befehle, Text2 IniWrite, %Text3% , settings.ini, Befehle, Text3 IniWrite, %Text4% , settings.ini, Befehle, Text4 IniWrite, %Text5% , settings.ini, Befehle, Text5 IniWrite, %Text6% , settings.ini, Befehle, Text6 IniWrite, %Text7% , settings.ini, Befehle, Text7 IniWrite, %Text8% , settings.ini, Befehle, Text8 IniWrite, %Text9% , settings.ini, Befehle, Text9 ExitApp
An was liegt das ? -
Hallo,
ich habe ein kleines Problem. Undzwar zeigt es mir das Heal von anderen Spielern nicht an.
Deswegen wollte ich fragen ob vieleicht jemand eine Lösung dafür hat.
Ich habe schon sehr oft GTA neu installiert. -
Hallo,
Ich wollte mal fragen wie das Programm heißt wo man Fenster für AHK erstellen kann.
Ich hatte es mal finde es aber nicht mehr .
Ich hoffe ihr könnt mir helfen. -
Danke hat geklappt
-
ok danke
-
Wie meinst du das mit den if klammern ?
-
Man ich habe doch gewusst ich habe was was vergessen -.-
ocmd:ah(playerid,params[])
{
SendClientMessage(playerid,Gruen,"_________________________");
if(PlayerInfo[playerid][pAdminlevel] == 1339 )
{
SendClientMessage(playerid,KickBanRot,"Owner: /makeadmin /makeleader /restart");
return 1;
}
if(PlayerInfo[playerid][pAdminlevel] >= 1 )
{
SendClientMessage(playerid,Blau,"Supporter auf Probe: Das ist ein Test.");
return 1;
}
SendClientMessage(playerid,Gruen,"_________________________");
return 1;
}