Errors bei Speedometer

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
  • breadfish, ich habe mir ein speedo ins script gemacht nun bekomme ich 11 errors


    C:\Users\Mario\Desktop\GNR.pwn(9487) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9500) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9513) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9526) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9539) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9552) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9565) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9578) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9588) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9598) : error 010: invalid function or declaration
    C:\Users\Mario\Desktop\GNR.pwn(9818) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    11 Errors.

    zeilen
    Black0 = TextDrawCreate(481.000000,353.000000,"_");
    TextDrawUseBox(Black0,1);
    TextDrawBoxColor(Black0,0x00000044);
    TextDrawTextSize(Black0,596.000000,0.000000);
    TextDrawAlignment(Black0,0);
    TextDrawBackgroundColor(Black0,0x000000ff);
    TextDrawFont(Black0,3);
    TextDrawLetterSize(Black0,3.599999,7.599996);
    TextDrawColor(Black0,0xffffffff);
    TextDrawSetOutline(Black0,1);
    TextDrawSetProportional(Black0,1);
    TextDrawSetShadow(Black0,1);


    White1 = TextDrawCreate(482.000000,354.000000,"_");
    TextDrawUseBox(White1,1);
    TextDrawBoxColor(White1,0xffffff11);
    TextDrawTextSize(White1,595.000000,-2.000000);
    TextDrawAlignment(White1,0);
    TextDrawBackgroundColor(White1,0x000000ff);
    TextDrawFont(White1,1);
    TextDrawLetterSize(White1,1.700000,7.399997);
    TextDrawColor(White1,0xffffffff);
    TextDrawSetOutline(White1,1);
    TextDrawSetProportional(White1,1);
    TextDrawSetShadow(White1,1);


    White2 = TextDrawCreate(483.000000,355.000000,"_");
    TextDrawUseBox(White2,1);
    TextDrawBoxColor(White2,0xffffff22);
    TextDrawTextSize(White2,594.000000,0.000000);
    TextDrawAlignment(White2,0);
    TextDrawBackgroundColor(White2,0x000000ff);
    TextDrawFont(White2,1);
    TextDrawLetterSize(White2,0.299999,7.199996);
    TextDrawColor(White2,0xffffffff);
    TextDrawSetOutline(White2,1);
    TextDrawSetProportional(White2,1);
    TextDrawSetShadow(White2,1);


    BlackHealth = TextDrawCreate(487.000000,385.000000,"_");
    TextDrawUseBox(BlackHealth,1);
    TextDrawBoxColor(BlackHealth,0x00000099);
    TextDrawTextSize(BlackHealth,590.000000,-11.000000);
    TextDrawAlignment(BlackHealth,0);
    TextDrawBackgroundColor(BlackHealth,0x000000ff);
    TextDrawFont(BlackHealth,3);
    TextDrawLetterSize(BlackHealth,1.000000,0.399999);
    TextDrawColor(BlackHealth,0xffffffff);
    TextDrawSetOutline(BlackHealth,1);
    TextDrawSetProportional(BlackHealth,1);
    TextDrawSetShadow(BlackHealth,1);


    DarkRedHealth = TextDrawCreate(488.000000,386.000000,"_");
    TextDrawUseBox(DarkRedHealth,1);
    TextDrawBoxColor(DarkRedHealth,0xff000066);
    TextDrawTextSize(DarkRedHealth,589.000000,0.000000);
    TextDrawAlignment(DarkRedHealth,0);
    TextDrawBackgroundColor(DarkRedHealth,0x000000ff);
    TextDrawFont(DarkRedHealth,3);
    TextDrawLetterSize(DarkRedHealth,1.000000,0.199999);
    TextDrawColor(DarkRedHealth,0xffffffff);
    TextDrawSetOutline(DarkRedHealth,1);
    TextDrawSetProportional(DarkRedHealth,1);
    TextDrawSetShadow(DarkRedHealth,1);


    BlackSpeed = TextDrawCreate(536.000000,403.000000,"_");
    TextDrawUseBox(BlackSpeed,1);
    TextDrawBoxColor(BlackSpeed,0x00000099);
    TextDrawTextSize(BlackSpeed,590.000000,0.000000);
    TextDrawAlignment(BlackSpeed,0);
    TextDrawBackgroundColor(BlackSpeed,0x000000ff);
    TextDrawFont(BlackSpeed,3);
    TextDrawLetterSize(BlackSpeed,1.000000,1.400000);
    TextDrawColor(BlackSpeed,0xffffffff);
    TextDrawSetOutline(BlackSpeed,1);
    TextDrawSetShadow(BlackSpeed,1);
    TextDrawSetProportional(BlackSpeed,1);


    DarkYellowSpeed = TextDrawCreate(537.000000,404.000000,"_");
    TextDrawUseBox(DarkYellowSpeed,1);
    TextDrawBoxColor(DarkYellowSpeed,0xffff0033);
    TextDrawTextSize(DarkYellowSpeed,589.000000,0.000000);
    TextDrawAlignment(DarkYellowSpeed,0);
    TextDrawBackgroundColor(DarkYellowSpeed,0x000000ff);
    TextDrawFont(DarkYellowSpeed,3);
    TextDrawLetterSize(DarkYellowSpeed,1.000000,1.200000);
    TextDrawColor(DarkYellowSpeed,0xffffffff);
    TextDrawSetOutline(DarkYellowSpeed,1);
    TextDrawSetProportional(DarkYellowSpeed,1);
    TextDrawSetShadow(DarkYellowSpeed,1);


    Marker = TextDrawCreate(511.000000,382.000000,"l");
    TextDrawAlignment(Marker,0);
    TextDrawBackgroundColor(Marker,0x000000ff);
    TextDrawFont(Marker,1);
    TextDrawLetterSize(Marker,0.099999,1.000000);
    TextDrawColor(Marker,0xffffffff);
    TextDrawSetOutline(Marker,1);
    TextDrawSetProportional(Marker,1);
    TextDrawSetShadow(Marker,1);


    Exclamation = TextDrawCreate(579.000000,351.000000,"~r~!");
    TextDrawAlignment(Exclamation,0);
    TextDrawBackgroundColor(Exclamation,0x000000ff);
    TextDrawFont(Exclamation,2);
    TextDrawLetterSize(Exclamation,1.200000,3.399999);
    TextDrawColor(Exclamation,0xffffffff);
    TextDrawSetOutline(Exclamation,1);
    TextDrawSetProportional(Exclamation,1);
    TextDrawSetShadow(Exclamation,1);


    CheckStatusTimer = SetTimer("CheckStatus", 150, 1);
    }

    bitte schnell um hilfe

  • Hi


    WIe hast du die TextDraws denn definiert?
    new Text:Black0 ... ? Ich glaub der fehler kommt wenn du z.B. nur new Black0 machst. Oder es kann auch sein dass du [i] vergessen hast wenn du das so definiert hast: new Text:Black0[MAX_PLAYERS]


    Frohe Weihnachten, Robdeflop