Beiträge von ImmerToni


    Ich kann es jetzt nicht genau versehen da ich ein Anfänger bin aber ich will dich informieren dass ich da drüber die TextDrawCreate's sachen schon sind.. Also ist für ein Speedo Meter..


    Zeilen:
    public OnGameModeInit() // Zeile 285
    {
    SetNameTagDrawDistance(20.0);
    ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
    DisableInteriorEnterExits();
    SetGameModeText("Just Your Life");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    UsePlayerPedAnims();

    SpeedoBox = TextDrawCreate(623.000000, 324.000000, " ");
    TextDrawBackgroundColor(SpeedoBox, 255);
    TextDrawFont(SpeedoBox, 1);
    TextDrawColor(SpeedoBox, -1);
    TextDrawSetOutline(SpeedoBox, 0);
    TextDrawSetProportional(SpeedoBox, 1);
    TextDrawSetShadow(SpeedoBox, 1);
    TextDrawUseBox(SpeedoBox, 1);
    TextDrawBoxColor(SpeedoBox, 50);
    TextDrawTextSize(SpeedoBox, 511.000000, -7.000000);


    SpeedoVehText = TextDrawCreate(516.000000, 322.000000, "Fahrzeug:");
    TextDrawBackgroundColor(SpeedoVehText, 255);
    TextDrawFont(SpeedoVehText, 2);
    TextDrawLetterSize(SpeedoVehText, 0.320000, 1.000000);
    TextDrawColor(SpeedoVehText,0xFFFF00AA);
    TextDrawSetOutline(SpeedoVehText, 1);
    TextDrawSetProportional(SpeedoVehText, 1);


    SpeedoHealthText = TextDrawCreate(516.000000, 403.000000, "Schaden:");
    TextDrawBackgroundColor(SpeedoHealthText, 255);
    TextDrawFont(SpeedoHealthText, 2);
    TextDrawLetterSize(SpeedoHealthText, 0.320000, 1.000000);
    TextDrawColor(SpeedoHealthText,0xFFFF00AA);
    TextDrawSetOutline(SpeedoHealthText, 1);
    TextDrawSetProportional(SpeedoHealthText, 1);


    SpeedoTankText = TextDrawCreate(516.000000, 376.000000, "Tank:");
    TextDrawBackgroundColor(SpeedoTankText, 255);
    TextDrawFont(SpeedoTankText, 2);
    TextDrawLetterSize(SpeedoTankText, 0.320000, 1.000000);
    TextDrawColor(SpeedoTankText,0xFFFF00AA);
    TextDrawSetOutline(SpeedoTankText, 1);
    TextDrawSetProportional(SpeedoTankText, 1);


    SpeedoKMHText = TextDrawCreate(516.000000, 349.000000, "KM/H:");
    TextDrawBackgroundColor(SpeedoKMHText, 255);
    TextDrawFont(SpeedoKMHText, 2);
    TextDrawLetterSize(SpeedoKMHText, 0.320000, 1.000000);
    TextDrawColor(SpeedoKMHText,0xFFFF00AA);
    TextDrawSetOutline(SpeedoKMHText, 1);
    TextDrawSetProportional(SpeedoKMHText, 1);
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
    SpeedoVeh[playerid] = TextDrawCreate(516.000000, 333.000000, " ");
    TextDrawBackgroundColor(SpeedoVeh[playerid], 255);
    TextDrawFont(SpeedoVeh[playerid], 2);
    TextDrawLetterSize(SpeedoVeh[playerid], 0.320000, 1.000000);
    TextDrawColor(SpeedoVeh[playerid], -1);
    TextDrawSetOutline(SpeedoVeh[playerid], 1);
    TextDrawSetProportional(SpeedoVeh[playerid], 1);


    SpeedoHealth[playerid] = CreatePlayerTextDraw(516.000000, 414.000000, " ");
    PlayerTextDrawBackgroundColor(SpeedoHealth[playerid], 255);
    PlayerTextDrawFont(SpeedoHealth[playerid], 2);
    PlayerTextDrawLetterSize(SpeedoHealth[playerid], 0.320000, 1.000000);
    PlayerTextDrawColor(SpeedoHealth[playerid], -1);
    PlayerTextDrawSetOutline(SpeedoHealth[playerid], 1);
    PlayerTextDrawSetProportional(SpeedoHealth[playerid], 1);


    SpeedoKMH[playerid] = TextDrawCreate(516.000000, 360.000000, " ");
    TextDrawBackgroundColor(SpeedoKMH[playerid], 255);
    TextDrawFont(SpeedoKMH[playerid], 2);
    TextDrawLetterSize(SpeedoKMH[playerid], 0.320000, 1.000000);
    TextDrawColor(SpeedoKMH[playerid], -1);
    TextDrawSetOutline(SpeedoKMH[playerid], 1);
    TextDrawSetProportional(SpeedoKMH[playerid], 1);


    SpeedoTank[playerid] = TextDrawCreate(516.000000, 387.000000, " ");
    TextDrawBackgroundColor(SpeedoTank[playerid], 255);
    TextDrawFont(SpeedoTank[playerid], 2);
    TextDrawLetterSize(SpeedoTank[playerid], 0.320000, 1.000000);
    TextDrawColor(SpeedoTank[playerid], -1);
    TextDrawSetOutline(SpeedoTank[playerid], 1);
    TextDrawSetProportional(SpeedoTank[playerid], 1);


    } // Zeile 370


    //Edit
    Hab den einen Error fixiert! Ich hab von der Zeile 346 SpeedoHealth[playerid] = CreatePlayerTextDraw(516.000000, 414.000000, " ");
    zu
    SpeedoHealth[playerid] = TextDrawCreate(516.000000, 414.000000, " ");
    geändert!


    Dennoch habe ich noch die anderen 18 Warnings


    Naja egal ist gelärt ich lass den Script ich such mir einen anderen :P Danke trotzdem!

    Ich habe keine Ahnung was da schief läuft...!


    FEHLER:
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(346) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(346) : error 035: argument type mismatch (argument 3)
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(346) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(347) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(347) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(347) : warning 202: number of arguments does not match definition
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(348) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(348) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(348) : warning 202: number of arguments does not match definition
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(349) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(349) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(349) : warning 202: number of arguments does not match definition
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(350) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(350) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(350) : warning 202: number of arguments does not match definition
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(351) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(351) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(351) : warning 202: number of arguments does not match definition
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(352) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(352) : warning 213: tag mismatch
    C:\Users\Antonio\Desktop\Servers\SAMP\Reallife Server\gamemodes\LiG.pwn(352) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    ZEILEN:
    {
    SpeedoVeh[playerid] = TextDrawCreate(516.000000, 333.000000, " "); // Zeile 338
    TextDrawBackgroundColor(SpeedoVeh[playerid], 255);
    TextDrawFont(SpeedoVeh[playerid], 2);
    TextDrawLetterSize(SpeedoVeh[playerid], 0.320000, 1.000000);
    TextDrawColor(SpeedoVeh[playerid], -1);
    TextDrawSetOutline(SpeedoVeh[playerid], 1);
    TextDrawSetProportional(SpeedoVeh[playerid], 1);


    SpeedoHealth[playerid] = CreatePlayerTextDraw(516.000000, 414.000000, " ");
    PlayerTextDrawBackgroundColor(SpeedoHealth[playerid], 255);
    PlayerTextDrawFont(SpeedoHealth[playerid], 2);
    PlayerTextDrawLetterSize(SpeedoHealth[playerid], 0.320000, 1.000000);
    PlayerTextDrawColor(SpeedoHealth[playerid], -1);
    PlayerTextDrawSetOutline(SpeedoHealth[playerid], 1);
    PlayerTextDrawSetProportional(SpeedoHealth[playerid], 1);


    SpeedoKMH[playerid] = TextDrawCreate(516.000000, 360.000000, " ");
    TextDrawBackgroundColor(SpeedoKMH[playerid], 255);
    TextDrawFont(SpeedoKMH[playerid], 2);
    TextDrawLetterSize(SpeedoKMH[playerid], 0.320000, 1.000000);
    TextDrawColor(SpeedoKMH[playerid], -1);
    TextDrawSetOutline(SpeedoKMH[playerid], 1);
    TextDrawSetProportional(SpeedoKMH[playerid], 1);


    SpeedoTank[playerid] = TextDrawCreate(516.000000, 387.000000, " ");
    TextDrawBackgroundColor(SpeedoTank[playerid], 255);
    TextDrawFont(SpeedoTank[playerid], 2);
    TextDrawLetterSize(SpeedoTank[playerid], 0.320000, 1.000000);
    TextDrawColor(SpeedoTank[playerid], -1);
    TextDrawSetOutline(SpeedoTank[playerid], 1);
    TextDrawSetProportional(SpeedoTank[playerid], 1); // Zeile 368
    }