Beiträge von Dachdecker

    Ich habe folgende Fehler:



    D:\Script Server\Sc\gamemodes\Selfmade.pwn(1462) : warning 204: symbol is assigned a value that is never used: "OFYBSchutzweste"
    D:\Script Server\Sc\gamemodes\Selfmade.pwn(1461) : warning 204: symbol is assigned a value that is never used: "OFYBDeagle"
    D:\Script Server\Sc\gamemodes\Selfmade.pwn(1460) : warning 204: symbol is assigned a value that is never used: "OFYBShotgun"
    D:\Script Server\Sc\gamemodes\Selfmade.pwn(1459) : warning 204: symbol is assigned a value that is never used: "OFYBTec9"
    D:\Script Server\Sc\gamemodes\Selfmade.pwn(1458) : warning 204: symbol is assigned a value that is never used: "OFYBUzi"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase




    5 Warnings.


    Ich nutze aber jeden dieser Variablen zweimal sogar.



    OFYBMP5 = dini_Int(path, "MP5" );
    OFYBUzi = dini_Int(path, "Uzi" );
    OFYBTec9 = dini_Int(path, "Tec9" );
    OFYBShotgun = dini_Int(path, "Shotgun" );
    OFYBDeagle = dini_Int(path, "Deagle" );
    OFYBSchutzweste = dini_Int(path, "Schutzweste");
    //_______________________________________________________________________________________________________________//
    dini_IntSet(path, "MP5" , OFYBMP5+FYBMP5);
    dini_IntSet(path, "Uzi" , OFYBMP5+FYBUzi);
    dini_IntSet(path, "Tec9" , OFYBMP5+FYBTec9);
    dini_IntSet(path, "Shotgun" , OFYBMP5+FYBShotgun);
    dini_IntSet(path, "Deagle" , OFYBMP5+FYBDeagle);
    dini_IntSet(path, "Schutzweste" , OFYBMP5+FYBSchutzweste);


    Kann mir das jemand erklären?


    stock WaffenlagerVerstecken(playerid)
    {
    PlayerTextDrawHide(playerid, HintereBox[playerid]);
    PlayerTextDrawHide(playerid, Waffenlager[playerid]);
    PlayerTextDrawHide(playerid, Beenden[playerid]);
    PlayerTextDrawHide(playerid, Bestand[playerid]);
    PlayerTextDrawHide(playerid, Waffe1[playerid]);
    PlayerTextDrawHide(playerid, Waffe2[playerid]);
    PlayerTextDrawHide(playerid, Waffe3[playerid]);
    PlayerTextDrawHide(playerid, Waffe4[playerid]);
    PlayerTextDrawHide(playerid, Waffe5[playerid]);
    PlayerTextDrawHide(playerid, Waffe6[playerid]);
    PlayerTextDrawHide(playerid, Waffe7[playerid]);
    PlayerTextDrawHide(playerid, Waffe8[playerid]);
    PlayerTextDrawHide(playerid, Waffe9[playerid]);
    PlayerTextDrawHide(playerid, Waffe10[playerid]);
    PlayerTextDrawHide(playerid, Waffe11[playerid]);
    PlayerTextDrawHide(playerid, Waffe12[playerid]);
    CancelSelectTextDraw(playerid);
    return 1;
    }



    stock WaffenlagerZeigen(playerid)
    {
    PlayerTextDrawShow(playerid, HintereBox[playerid]);
    PlayerTextDrawShow(playerid, Waffenlager[playerid]);
    PlayerTextDrawShow(playerid, Bestand[playerid]);
    PlayerTextDrawShow(playerid, Beenden[playerid]);
    SelectTextDraw(playerid, 0x00FF00FF);
    return 1;
    }

    Wenn ich das nutze:



    public OnPlayerClickTextDraw(playerid, Text:clickedid)
    {
    if(clickedid == Text:INVALID_TEXT_DRAW)
    {
    WaffenlagerVerstecken(playerid);
    CancelSelectTextDraw(playerid);
    }
    return 1;
    }



    Dann kommt das die ganze zeit in der Konsole:



    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:37] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:38] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1087) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:39] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec
    [12:12:40] [warning] client exceeded 'messageslimit' 127.0.0.1:54127 (1490) Limit: 500/sec


    Wenn ich den pwn Code rausnehme mit dem OnPlayerClickTextDraw dann kommt das nicht mehr

    Das könnte, ohne den Code gesehen zu haben, an hier (Textdraws funktionieren nicht?) von mir beschriebenem Fehlen von (Player)TextDrawTextSize liegen.Versuche es mal, indem du den Textdraws das hinzufügst.

    Jo hab mir das nochmal angesehen und umgewandelt, hat perfekt geklappt.


    Gibt es irgendwie eine Möglichkeit wenn ich Ingame die ESC Taste drücke, dass die TextDraws auch verschwinden? (Ein bekannter Server hat das auch irgendwie geschafft)

    Der Code ist in meinem Gamemode.


    so nutze ich es


    //Push

    Danke Jeffry für die Aufklärung, aber auf meinem alten Script funktioniert es ja genau so mit diesen Werten.. das ist die 1zu1 Kopie aus meinem alten Script.. deshalb verstehe ich j nicht, dass es nicht klappt


    Beenden[playerid] = CreatePlayerTextDraw(playerid,374.000000, 341.000000, "Beenden");
    PlayerTextDrawBackgroundColor(playerid,Beenden[playerid], 255);
    PlayerTextDrawFont(playerid,Beenden[playerid], 1);
    PlayerTextDrawLetterSize(playerid,Beenden[playerid], 0.370000, 1.000000);
    PlayerTextDrawColor(playerid,Beenden[playerid], -1);
    PlayerTextDrawSetOutline(playerid,Beenden[playerid], 0);
    PlayerTextDrawSetProportional(playerid,Beenden[playerid], 1);
    PlayerTextDrawSetShadow(playerid,Beenden[playerid], 1);
    PlayerTextDrawSetSelectable(playerid,Beenden[playerid], 1);
    PlayerTextDrawHide(playerid, Beenden[playerid]);


    mit PlayerTextDrawLetterSize wird es markiert
    mit PlayerTextDrawTextSize wird es nicht markiert


    gerade getestet