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