Bitte Hilfe - Textdraw :(

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
  • Hey,
    Ich habe ein Fehler. Wenn ich ingame gehe und /shop aufrufe und dann auf ein Text klicke passiert nix hier der Code:

    Spoiler anzeigen
    //SHOP
    Shop0 = TextDrawCreate(501.200042, 121.713325, "usebox");
    TextDrawLetterSize(Shop0, 0.000000, 21.917406);
    TextDrawTextSize(Shop0, 158.000000, 0.000000);
    TextDrawAlignment(Shop0, 1);
    TextDrawColor(Shop0, 0);
    TextDrawUseBox(Shop0, true);
    TextDrawBoxColor(Shop0, 102);
    TextDrawSetShadow(Shop0, 0);
    TextDrawSetOutline(Shop0, 0);
    TextDrawFont(Shop0, 0);

    Spoiler anzeigen
    Shop1 = TextDrawCreate(175.999969, 130.666656, "Money");
    TextDrawLetterSize(Shop1, 0.297199, 1.585066);
    TextDrawTextSize(Shop1, 7.200019, 37.333351);
    TextDrawAlignment(Shop1, 1);
    TextDrawColor(Shop1, -1);
    TextDrawSetShadow(Shop1, 0);
    TextDrawSetOutline(Shop1, 5);
    TextDrawBackgroundColor(Shop1, 51);
    TextDrawFont(Shop1, 2);
    TextDrawSetProportional(Shop1, 1);
    TextDrawSetSelectable(Shop1, true);

    Spoiler anzeigen
    Shop2 = TextDrawCreate(175.199935, 158.293395, "Score");
    TextDrawLetterSize(Shop2, 0.449999, 1.600000);
    TextDrawAlignment(Shop2, 1);
    TextDrawColor(Shop2, -1);
    TextDrawSetShadow(Shop2, 0);
    TextDrawSetOutline(Shop2, 1);
    TextDrawBackgroundColor(Shop2, 51);
    TextDrawFont(Shop2, 2);
    TextDrawSetProportional(Shop2, 1);
    TextDrawSetSelectable(Shop2, true);

    Spoiler anzeigen
    Shop3 = TextDrawCreate(408.799987, 130.666625, "Point Shop");
    TextDrawLetterSize(Shop3, 0.449999, 1.600000);
    TextDrawAlignment(Shop3, 2);
    TextDrawColor(Shop3, 16777215);
    TextDrawSetShadow(Shop3, 9);
    TextDrawSetOutline(Shop3, 0);
    TextDrawBackgroundColor(Shop3, 51);
    TextDrawFont(Shop3, 1);
    TextDrawSetProportional(Shop3, 1);

    Spoiler anzeigen
    Shop4 = TextDrawCreate(241.599975, 158.293350, "(50 Points)");
    TextDrawLetterSize(Shop4, 0.184400, 1.435733);
    TextDrawAlignment(Shop4, 1);
    TextDrawColor(Shop4, -1);
    TextDrawSetShadow(Shop4, 0);
    TextDrawSetOutline(Shop4, 1);
    TextDrawBackgroundColor(Shop4, 51);
    TextDrawFont(Shop4, 1);
    TextDrawSetProportional(Shop4, 1);

    Spoiler anzeigen
    Shop5 = TextDrawCreate(227.999969, 130.666671, "(100 Points)");
    TextDrawLetterSize(Shop5, 0.184399, 1.629866);
    TextDrawAlignment(Shop5, 1);
    TextDrawColor(Shop5, -1);
    TextDrawSetShadow(Shop5, 0);
    TextDrawSetOutline(Shop5, 1);
    TextDrawBackgroundColor(Shop5, 51);
    TextDrawFont(Shop5, 1);
    TextDrawSetProportional(Shop5, 1);

    Spoiler anzeigen
    Shop6 = TextDrawCreate(192.799819, 212.053329, "Weiteres in bearbeitung!");
    TextDrawLetterSize(Shop6, 0.669200, 3.601061);
    TextDrawAlignment(Shop6, 1);
    TextDrawColor(Shop6, -1);
    TextDrawSetShadow(Shop6, 0);
    TextDrawSetOutline(Shop6, 1);
    TextDrawBackgroundColor(Shop6, 51);
    TextDrawFont(Shop6, 1);
    TextDrawSetProportional(Shop6, 1);
    TextDrawSetSelectable(Shop6, true);

    Shop7 = TextDrawCreate(483.999908, 117.226661, "X");
    TextDrawLetterSize(Shop7, 0.449999, 1.600000);
    TextDrawAlignment(Shop7, 1);
    TextDrawColor(Shop7, -16776961);
    TextDrawSetShadow(Shop7, 0);
    TextDrawSetOutline(Shop7, 1);
    TextDrawBackgroundColor(Shop7, 51);
    TextDrawFont(Shop7, 1);
    TextDrawSetProportional(Shop7, 1);
    TextDrawSetSelectable(Shop7, true);


    Und OnPlayerClickTextdraw:

    Spoiler anzeigen
    if(clickedid == Shop1)
    {
    SelectTextDraw(playerid, 0xFFFFFFFF);
    TextDrawHideForPlayer(playerid, Shop0);
    TextDrawHideForPlayer(playerid, Shop1);
    TextDrawHideForPlayer(playerid, Shop2);
    TextDrawHideForPlayer(playerid, Shop3);
    TextDrawHideForPlayer(playerid, Shop4);
    TextDrawHideForPlayer(playerid, Shop5);
    TextDrawHideForPlayer(playerid, Shop6);
    TextDrawHideForPlayer(playerid, Shop7);
    if(GetPVarInt(playerid,"loggedin") == 0)return SendClientMessage(playerid,ROT," Du bist nicht Eingeloggt!");
    if(GetPVarInt(playerid,"Points") >100)return SendClientMessage(playerid,ROT,"Du hast nicht 100 Points!");
    {
    GivePlayerMoney(playerid,50000);
    }

    Spoiler anzeigen
    if(clickedid == Shop2)
    {
    SelectTextDraw(playerid, 0xFFFFFFFF);
    TextDrawHideForPlayer(playerid, Shop0);
    TextDrawHideForPlayer(playerid, Shop1);
    TextDrawHideForPlayer(playerid, Shop2);
    TextDrawHideForPlayer(playerid, Shop3);
    TextDrawHideForPlayer(playerid, Shop4);
    TextDrawHideForPlayer(playerid, Shop5);
    TextDrawHideForPlayer(playerid, Shop6);
    TextDrawHideForPlayer(playerid, Shop7);
    if(GetPVarInt(playerid,"loggedin") == 0)return SendClientMessage(playerid,ROT," Du bist nicht Eingeloggt!");
    if(GetPVarInt(playerid,"Points") >50)return SendClientMessage(playerid,ROT,"Du hast nicht 50 Points!");
    {
    SetPlayerScore(playerid, GetPlayerScore(playerid) + 550);

    }


    Außerdem beim Shop dieses 'X' Textdraw, wird gar nicht angezeigt. Wieso??? :?:

    Einmal editiert, zuletzt von They[NEF] ()