Payday geht nicht richtig

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
  • 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 CompuPhase

    Spoiler 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);

  • 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:");

  • Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 110.000000, "PayDay");
    Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 161.500000, 111.900001, "00/04");
    Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 127.000000, "Lohn:");
    Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 139.000000, "Zinsen:");
    Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 151.000000, "Steuern:");
    Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 163.000000, "Promille:");
    Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 175.000000, "Kontoalt:");
    Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 15.000000, 187.000000, "Kontoneu:");


    Wenn du meinen Code genommen hast dann nehme ich es auf meine Kappe, ich hab es nämlich auch vergessen zu ändern.

  • jop Danke. Aber eins wäre da noch. Und zwar habe ich dann bei dem Timer so gemacht das wenn die vorbei sind, das die dan gelöscht werden die TextDraws. gibt aber warnings:
    Code:

    public paydaytimer(playerid)
    {
    TextDrawHideForPlayer(playerid, Textdraw0[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw1[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw2[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw3[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw4[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw5[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw6[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw7[playerid]);
    return 1;
    }


    Warnings:

    C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(951) : warning 213: tag mismatch
    C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(952) : warning 213: tag mismatch
    C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(953) : warning 213: tag mismatch
    C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(954) : warning 213: tag mismatch
    C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(955) : warning 213: tag mismatch
    C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(956) : warning 213: tag mismatch
    C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(957) : warning 213: tag mismatch
    C:\Users\Florian\Desktop\SAMP Server\gamemodes\RealLifeEvolution.pwn(958) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    8 Warnings.

  • public paydaytimer(playerid)
    {
    PlayerTextDrawHide(playerid, Textdraw0[playerid]);
    PlayerTextDrawHide(playerid, Textdraw1[playerid]);
    PlayerTextDrawHide(playerid, Textdraw2[playerid]);
    PlayerTextDrawHide(playerid, Textdraw3[playerid]);
    PlayerTextDrawHide(playerid, Textdraw4[playerid]);
    PlayerTextDrawHide(playerid, Textdraw5[playerid]);
    PlayerTextDrawHide(playerid, Textdraw6[playerid]);
    PlayerTextDrawHide(playerid, Textdraw7[playerid]);
    return 1;
    }

  • Das wäre dann das hier:

    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))
    {
    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]);
    SetTimer("paydaytimer",4000,false);
    }
    }
    return 1;
    }

  • Payday:

    Spoiler anzeigen
    public Payday()
    {
    new string[128];
    static lasthour;
    new hour,minute, second;
    gettime(hour, minute,second);
    if(minute == 0 && hour != lasthour)
    {
    lasthour = hour;
    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))
    {
    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]);
    }
    }
    SetTimer("paydaytimer",4000,false);
    }
    return 1;
    }


    Paydaytimer:

    Spoiler anzeigen
    public paydaytimer()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    PlayerTextDrawHide(i, Textdraw0[i]);
    PlayerTextDrawHide(i, Textdraw1[i]);
    PlayerTextDrawHide(i, Textdraw2[i]);
    PlayerTextDrawHide(i, Textdraw3[i]);
    PlayerTextDrawHide(i, Textdraw4[i]);
    PlayerTextDrawHide(i, Textdraw5[i]);
    PlayerTextDrawHide(i, Textdraw6[i]);
    PlayerTextDrawHide(i, Textdraw7[i]);
    }
    }
    return 1;
    }


    Timer starten:
    SetTimer("Payday",3600000,true);
    zu:
    SetTimer("Payday",10000,true); //Prüft alle 10 Sekunden ob wir eine volle Stunde haben (Bsp: 12:00)