Clickable textdraw error
#1

Hi, I'm creating my first gamemode as I'm a beginner in scripting, now I've tried to add a teleport textdraw followed from tutorial: https://sampforum.blast.hk/showthread.php?tid=328267 from @Hiddos but I get some bugs, I don't know how to solve them. I need your help as many of you are more experienced then me...
picture of the problem:


code
pawn Код:
new Text:Box;
new Text:TeleportMenu;
new Text:AllSaints;
new Text:CountyCentral;
new Text:Unity;
new Text:Airport;
new Text:Verona;
new Text:Skate;
new Text:VIP;
new Text:News;
new Text:Bank;
new Text:Jefferson;
new Text:LRG;
new Text:WAG;
new Text:Transfender;
new Text:Pier;
new Text:FBI;
new Text:Gaton;
new Text:Bayside;
new Text:Dillimore;
new Text:Creek;
new Text:Stadium;
new Text:Insurence;
new Text:Docks;
new Text:Version;
new Text:Close;
new Text:RedBox;

public OnGameModeInit()
{
    Box = TextDrawCreate(493.666687, 100.225921, "usebox");
    TextDrawLetterSize(Box, 0.000000, 25.033128);
    TextDrawTextSize(Box, 158.333328, 20.000000);
    TextDrawAlignment(Box, 1);
    TextDrawColor(Box, 0);
    TextDrawUseBox(Box, true);
    TextDrawBoxColor(Box, 102);
    TextDrawSetShadow(Box, 0);
    TextDrawSetOutline(Box, 0);
    TextDrawFont(Box, 0);

    TeleportMenu = TextDrawCreate(272.666564, 97.896270, "Teleport Menu");
    TextDrawLetterSize(TeleportMenu, 0.449999, 1.600000);
    TextDrawAlignment(TeleportMenu, 1);
    TextDrawColor(TeleportMenu, -1);
    TextDrawSetShadow(TeleportMenu, 0);
    TextDrawSetOutline(TeleportMenu, 1);
    TextDrawBackgroundColor(TeleportMenu, 51);
    TextDrawFont(TeleportMenu, 3);
    TextDrawSetProportional(TeleportMenu, 1);

    AllSaints = TextDrawCreate(165.666732, 121.540763, "All Saints");
    TextDrawLetterSize(AllSaints, 0.449999, 1.600000);
    TextDrawAlignment(AllSaints, 1);
    TextDrawColor(AllSaints, -1);
    TextDrawSetShadow(AllSaints, 0);
    TextDrawSetOutline(AllSaints, 1);
    TextDrawBackgroundColor(AllSaints, 51);
    TextDrawFont(AllSaints, 1);
    TextDrawSetProportional(AllSaints, 1);
    TextDrawSetSelectable(AllSaints, true);

    CountyCentral = TextDrawCreate(166.333328, 136.888870, "County General");
    TextDrawLetterSize(CountyCentral, 0.449999, 1.600000);
    TextDrawAlignment(CountyCentral, 1);
    TextDrawColor(CountyCentral, -1);
    TextDrawSetShadow(CountyCentral, 0);
    TextDrawSetOutline(CountyCentral, 1);
    TextDrawBackgroundColor(CountyCentral, 51);
    TextDrawFont(CountyCentral, 1);
    TextDrawSetProportional(CountyCentral, 1);
    TextDrawSetSelectable(CountyCentral, true);

    Unity = TextDrawCreate(167.333374, 152.237014, "Unity Station");
    TextDrawLetterSize(Unity, 0.449999, 1.600000);
    TextDrawAlignment(Unity, 1);
    TextDrawColor(Unity, -1);
    TextDrawSetShadow(Unity, 0);
    TextDrawSetOutline(Unity, 1);
    TextDrawBackgroundColor(Unity, 51);
    TextDrawFont(Unity, 1);
    TextDrawSetProportional(Unity, 1);
    TextDrawSetSelectable(Unity, true);

    Airport = TextDrawCreate(165.999954, 166.340728, "Airport");
    TextDrawLetterSize(Airport, 0.449999, 1.600000);
    TextDrawAlignment(Airport, 1);
    TextDrawColor(Airport, -1);
    TextDrawSetShadow(Airport, 0);
    TextDrawSetOutline(Airport, 1);
    TextDrawBackgroundColor(Airport, 51);
    TextDrawFont(Airport, 1);
    TextDrawSetProportional(Airport, 1);
    TextDrawSetSelectable(Airport, true);

    Verona = TextDrawCreate(167.000000, 181.688873, "Verona Beach");
    TextDrawLetterSize(Verona, 0.449999, 1.600000);
    TextDrawAlignment(Verona, 1);
    TextDrawColor(Verona, -1);
    TextDrawSetShadow(Verona, 0);
    TextDrawSetOutline(Verona, 1);
    TextDrawBackgroundColor(Verona, 51);
    TextDrawFont(Verona, 1);
    TextDrawSetProportional(Verona, 1);
    TextDrawSetSelectable(Verona, true);

    Skate = TextDrawCreate(166.999984, 196.622207, "Skate Park");
    TextDrawLetterSize(Skate, 0.449999, 1.600000);
    TextDrawAlignment(Skate, 1);
    TextDrawColor(Skate, -1);
    TextDrawSetShadow(Skate, 0);
    TextDrawSetOutline(Skate, 1);
    TextDrawBackgroundColor(Skate, 51);
    TextDrawFont(Skate, 1);
    TextDrawSetProportional(Skate, 1);
    TextDrawSetSelectable(Skate, true);

    VIP = TextDrawCreate(168.333328, 211.555511, "VIP Shop");
    TextDrawLetterSize(VIP, 0.449999, 1.600000);
    TextDrawAlignment(VIP, 1);
    TextDrawColor(VIP, -1);
    TextDrawSetShadow(VIP, 0);
    TextDrawSetOutline(VIP, 1);
    TextDrawBackgroundColor(VIP, 51);
    TextDrawFont(VIP, 1);
    TextDrawSetProportional(VIP, 1);
    TextDrawSetSelectable(VIP, true);

    News = TextDrawCreate(168.333374, 226.074096, "SAN News");
    TextDrawLetterSize(News, 0.449999, 1.600000);
    TextDrawAlignment(News, 1);
    TextDrawColor(News, -1);
    TextDrawSetShadow(News, 0);
    TextDrawSetOutline(News, 1);
    TextDrawBackgroundColor(News, 51);
    TextDrawFont(News, 1);
    TextDrawSetProportional(News, 1);
    TextDrawSetSelectable(News, true);

    Bank = TextDrawCreate(169.333358, 240.592681, "Bank");
    TextDrawLetterSize(Bank, 0.449999, 1.600000);
    TextDrawAlignment(Bank, 1);
    TextDrawColor(Bank, -1);
    TextDrawSetShadow(Bank, 0);
    TextDrawSetOutline(Bank, 1);
    TextDrawBackgroundColor(Bank, 51);
    TextDrawFont(Bank, 1);
    TextDrawSetProportional(Bank, 1);
    TextDrawSetSelectable(Bank, true);

    Jefferson = TextDrawCreate(168.666671, 254.281509, "Jefferson");
    TextDrawLetterSize(Jefferson, 0.449999, 1.600000);
    TextDrawAlignment(Jefferson, 1);
    TextDrawColor(Jefferson, -1);
    TextDrawSetShadow(Jefferson, 0);
    TextDrawSetOutline(Jefferson, 1);
    TextDrawBackgroundColor(Jefferson, 51);
    TextDrawFont(Jefferson, 1);
    TextDrawSetProportional(Jefferson, 1);
    TextDrawSetSelectable(Jefferson, true);

    LRG = TextDrawCreate(170.333267, 267.555541, "Low Riders Garage");
    TextDrawLetterSize(LRG, 0.449999, 1.600000);
    TextDrawAlignment(LRG, 1);
    TextDrawColor(LRG, -1);
    TextDrawSetShadow(LRG, 0);
    TextDrawSetOutline(LRG, 1);
    TextDrawBackgroundColor(LRG, 51);
    TextDrawFont(LRG, 1);
    TextDrawSetProportional(LRG, 1);
    TextDrawSetSelectable(LRG, true);

    WAG = TextDrawCreate(487.333221, 255.525985, "Wheel Archs Garage");
    TextDrawLetterSize(WAG, 0.449999, 1.600000);
    TextDrawAlignment(WAG, 3);
    TextDrawColor(WAG, -1);
    TextDrawSetShadow(WAG, 0);
    TextDrawSetOutline(WAG, 1);
    TextDrawBackgroundColor(WAG, 51);
    TextDrawFont(WAG, 1);
    TextDrawSetProportional(WAG, 1);
    TextDrawSetSelectable(WAG, true);

    Transfender = TextDrawCreate(486.666625, 269.215026, "Transfender Garage");
    TextDrawLetterSize(Transfender, 0.449999, 1.600000);
    TextDrawAlignment(Transfender, 3);
    TextDrawColor(Transfender, -1);
    TextDrawSetShadow(Transfender, 0);
    TextDrawSetOutline(Transfender, 1);
    TextDrawBackgroundColor(Transfender, 51);
    TextDrawFont(Transfender, 1);
    TextDrawSetProportional(Transfender, 1);
    TextDrawSetSelectable(Transfender, true);

    Pier = TextDrawCreate(485.333038, 129.836975, "Pier");
    TextDrawLetterSize(Pier, 0.449999, 1.600000);
    TextDrawAlignment(Pier, 3);
    TextDrawColor(Pier, -1);
    TextDrawSetShadow(Pier, 0);
    TextDrawSetOutline(Pier, 1);
    TextDrawBackgroundColor(Pier, 51);
    TextDrawFont(Pier, 1);
    TextDrawSetProportional(Pier, 1);
    TextDrawSetSelectable(Pier, true);

    FBI = TextDrawCreate(484.666503, 145.599914, "FBI HQ");
    TextDrawLetterSize(FBI, 0.449999, 1.600000);
    TextDrawAlignment(FBI, 3);
    TextDrawColor(FBI, -1);
    TextDrawSetShadow(FBI, 0);
    TextDrawSetOutline(FBI, 1);
    TextDrawBackgroundColor(FBI, 51);
    TextDrawFont(FBI, 1);
    TextDrawSetProportional(FBI, 1);
    TextDrawSetSelectable(FBI, true);

    Gaton = TextDrawCreate(485.666595, 157.629592, "Ganton Gym");
    TextDrawLetterSize(Gaton, 0.449999, 1.600000);
    TextDrawAlignment(Gaton, 3);
    TextDrawColor(Gaton, -1);
    TextDrawSetShadow(Gaton, 0);
    TextDrawSetOutline(Gaton, 1);
    TextDrawBackgroundColor(Gaton, 51);
    TextDrawFont(Gaton, 1);
    TextDrawSetProportional(Gaton, 1);
    TextDrawSetSelectable(Gaton, true);

    Bayside = TextDrawCreate(485.000000, 171.318572, "Bayside");
    TextDrawLetterSize(Bayside, 0.449999, 1.600000);
    TextDrawAlignment(Bayside, 3);
    TextDrawColor(Bayside, -1);
    TextDrawSetShadow(Bayside, 0);
    TextDrawSetOutline(Bayside, 1);
    TextDrawBackgroundColor(Bayside, 51);
    TextDrawFont(Bayside, 1);
    TextDrawSetProportional(Bayside, 1);
    TextDrawSetSelectable(Bayside, true);

    Dillimore = TextDrawCreate(485.999938, 186.251831, "Dillimore");
    TextDrawLetterSize(Dillimore, 0.449999, 1.600000);
    TextDrawAlignment(Dillimore, 3);
    TextDrawColor(Dillimore, -1);
    TextDrawSetShadow(Dillimore, 0);
    TextDrawSetOutline(Dillimore, 1);
    TextDrawBackgroundColor(Dillimore, 51);
    TextDrawFont(Dillimore, 1);
    TextDrawSetProportional(Dillimore, 1);
    TextDrawSetSelectable(Dillimore, true);

    Creek = TextDrawCreate(486.000152, 199.940704, "Palomino Creek");
    TextDrawLetterSize(Creek, 0.449999, 1.600000);
    TextDrawAlignment(Creek, 3);
    TextDrawColor(Creek, -1);
    TextDrawSetShadow(Creek, 0);
    TextDrawSetOutline(Creek, 1);
    TextDrawBackgroundColor(Creek, 51);
    TextDrawFont(Creek, 1);
    TextDrawSetProportional(Creek, 1);
    TextDrawSetSelectable(Creek, true);

    Stadium = TextDrawCreate(486.666625, 214.044464, "LS Stadium");
    TextDrawLetterSize(Stadium, 0.449999, 1.600000);
    TextDrawAlignment(Stadium, 3);
    TextDrawColor(Stadium, -1);
    TextDrawSetShadow(Stadium, 0);
    TextDrawSetOutline(Stadium, 1);
    TextDrawBackgroundColor(Stadium, 51);
    TextDrawFont(Stadium, 1);
    TextDrawSetProportional(Stadium, 1);
    TextDrawSetSelectable(Stadium, true);

    Insurence = TextDrawCreate(486.666717, 227.733337, "Insurance");
    TextDrawLetterSize(Insurence, 0.449999, 1.600000);
    TextDrawAlignment(Insurence, 3);
    TextDrawColor(Insurence, -1);
    TextDrawSetShadow(Insurence, 0);
    TextDrawSetOutline(Insurence, 1);
    TextDrawBackgroundColor(Insurence, 51);
    TextDrawFont(Insurence, 1);
    TextDrawSetProportional(Insurence, 1);
    TextDrawSetSelectable(Insurence, true);

    Docks = TextDrawCreate(487.333282, 241.007385, "Fishing Docks");
    TextDrawLetterSize(Docks, 0.449999, 1.600000);
    TextDrawAlignment(Docks, 3);
    TextDrawColor(Docks, -1);
    TextDrawSetShadow(Docks, 0);
    TextDrawSetOutline(Docks, 1);
    TextDrawBackgroundColor(Docks, 51);
    TextDrawFont(Docks, 1);
    TextDrawSetProportional(Docks, 1);
    TextDrawSetSelectable(Docks, true);

    Version = TextDrawCreate(396.333312, 103.288856, "V 1.0");
    TextDrawLetterSize(Version, 0.113333, 0.957036);
    TextDrawAlignment(Version, 1);
    TextDrawColor(Version, -1);
    TextDrawSetShadow(Version, 0);
    TextDrawSetOutline(Version, 1);
    TextDrawBackgroundColor(Version, 51);
    TextDrawFont(Version, 1);
    TextDrawSetProportional(Version, 1);

    Close = TextDrawCreate(291.999816, 309.037200, "Close");
    TextDrawLetterSize(Close, 0.449999, 1.600000);
    TextDrawAlignment(Close, 1);
    TextDrawColor(Close, -1);
    TextDrawSetShadow(Close, 0);
    TextDrawSetOutline(Close, 1);
    TextDrawBackgroundColor(Close, 51);
    TextDrawFont(Close, 2);
    TextDrawSetProportional(Close, 1);
    TextDrawSetSelectable(Close, true);

    RedBox = TextDrawCreate(289.999938, 312.196289, "usebox");
    TextDrawLetterSize(RedBox, 0.000000, 1.388682);
    TextDrawTextSize(RedBox, 353.333312, 0.000000);
    TextDrawAlignment(RedBox, 1);
    TextDrawColor(RedBox, 0);
    TextDrawUseBox(RedBox, true);
    TextDrawBoxColor(RedBox, -16776961);
    TextDrawSetShadow(RedBox, 0);
    TextDrawSetOutline(RedBox, 0);
    TextDrawBackgroundColor(RedBox, -16776961);
    TextDrawFont(RedBox, 0);

    return 1;
}
public OnGameModeExit()
{
    TextDrawDestroy(Box);
    TextDrawDestroy(TeleportMenu);
    TextDrawDestroy(AllSaints);
    TextDrawDestroy(CountyCentral);
    TextDrawDestroy(Unity);
    TextDrawDestroy(Airport);
    TextDrawDestroy(Verona);
    TextDrawDestroy(Skate);
    TextDrawDestroy(VIP);
    TextDrawDestroy(News);
    TextDrawDestroy(Bank);
    TextDrawDestroy(Jefferson);
    TextDrawDestroy(LRG);
    TextDrawDestroy(WAG);
    TextDrawDestroy(Transfender);
    TextDrawDestroy(Pier);
    TextDrawDestroy(FBI);
    TextDrawDestroy(Gaton);
    TextDrawDestroy(Bayside);
    TextDrawDestroy(Dillimore);
    TextDrawDestroy(Creek);
    TextDrawDestroy(Stadium);
    TextDrawDestroy(Insurence);
    TextDrawDestroy(Docks);
    TextDrawDestroy(Version);
    TextDrawDestroy(Close);
    TextDrawDestroy(RedBox);
    return 1;
}

CMD:teleport(playerid)
{
    TextDrawShowForPlayer(playerid, Box);
    TextDrawShowForPlayer(playerid, TeleportMenu);
    TextDrawShowForPlayer(playerid, AllSaints);
    TextDrawShowForPlayer(playerid, CountyCentral);
    TextDrawShowForPlayer(playerid, Unity);
    TextDrawShowForPlayer(playerid, Airport);
    TextDrawShowForPlayer(playerid, Verona);
    TextDrawShowForPlayer(playerid, Skate);
    TextDrawShowForPlayer(playerid, VIP);
    TextDrawShowForPlayer(playerid, News);
    TextDrawShowForPlayer(playerid, Bank);
    TextDrawShowForPlayer(playerid, Jefferson);
    TextDrawShowForPlayer(playerid, LRG);
    TextDrawShowForPlayer(playerid, WAG);
    TextDrawShowForPlayer(playerid, Transfender);
    TextDrawShowForPlayer(playerid, Pier);
    TextDrawShowForPlayer(playerid, FBI);
    TextDrawShowForPlayer(playerid, Gaton);
    TextDrawShowForPlayer(playerid, Bayside);
    TextDrawShowForPlayer(playerid, Dillimore);
    TextDrawShowForPlayer(playerid, Creek);
    TextDrawShowForPlayer(playerid, Stadium);
    TextDrawShowForPlayer(playerid, Insurence);
    TextDrawShowForPlayer(playerid, Docks);
    TextDrawShowForPlayer(playerid, Version);
    TextDrawShowForPlayer(playerid, Close);
    TextDrawShowForPlayer(playerid, RedBox);
    SelectTextDraw(playerid, 0xA3B4C5FF);

    return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(_:clickedid != INVALID_TEXT_DRAW)
    {
        if(clickedid == AllSaints)
        {
            SetPlayerPos(playerid, 1188.721313, -1327.980712, 13.560094);
            SetPlayerFacingAngle(playerid, 266.963989);
        }
        else if(clickedid == CountyCentral)
        {
            SetPlayerPos(playerid, 2002.118896, -1459.253051, 13.976039);
            SetPlayerFacingAngle(playerid, 91.969909);
        }
        else if(clickedid == Unity)
        {
            SetPlayerPos(playerid, 1845.091552, -1883.868286, 13.430412);
            SetPlayerFacingAngle(playerid, 87.590660);
        }
        else if(clickedid == Airport)
        {
            SetPlayerPos(playerid, 1549.765625, -2327.221435, 13.554566);
            SetPlayerFacingAngle(playerid, 305.962677);
        }
        else if(clickedid == Verona)
        {
            SetPlayerPos(playerid, 272.020385, -1855.016845, 3.138944);
            SetPlayerFacingAngle(playerid, 167.781250);
        }
        else if(clickedid == Skate)
        {
            SetPlayerPos(playerid, 1923.343627, -1402.317626, 13.570312);
            SetPlayerFacingAngle(playerid, 102.607337);
        }
        else if(clickedid == VIP)
        {
            SetPlayerPos(playerid, 1230.494628, -1654.971801, 11.796875);
            SetPlayerFacingAngle(playerid, 278.70233);
        }
        else if(clickedid == News)
        {
            SetPlayerPos(playerid, 771.163452, -1345.748779, 13.524566);
            SetPlayerFacingAngle(playerid, 85.420623);
        }
        else if(clickedid == Bank)
        {
            SetPlayerPos(playerid, 1454.840698, -1032.919555, 23.656250);
            SetPlayerFacingAngle(playerid, 275.615692);
        }
        else if(clickedid == Jefferson)
        {
            SetPlayerPos(playerid, 2154.411865, -1146.687744, 24.557231);
            SetPlayerFacingAngle(playerid, 354.810729);
        }
        else if(clickedid == LRG)
        {
            SetPlayerPos(playerid, 2645.167480, -2024.723754, 13.546875);
            SetPlayerFacingAngle(playerid, 182.554824);
        }
        else if(clickedid == WAG)
        {
            SetPlayerPos(playerid, -2707.022949, 217.767456, 4.179687);
            SetPlayerFacingAngle(playerid, 95.784019);
        }
        else if(clickedid == Transfender)
        {
            SetPlayerPos(playerid, 1041.522827, -1039.072021, 31.771018);
            SetPlayerFacingAngle(playerid, 356.526794);
        }
        else if(clickedid == Pier)
        {
            SetPlayerPos(playerid, 2760.265136, -2452.654296, 13.542481);
            SetPlayerFacingAngle(playerid, 183.878387);
        }
        else if(clickedid == FBI)
        {
            SetPlayerPos(playerid, 345.805755, -1529.614501, 33.342090);
            SetPlayerFacingAngle(playerid, 149.987747);
        }
        else if(clickedid == Gaton)
        {
            SetPlayerPos(playerid, 2231.828857, -1730.195434, 13.382812);
            SetPlayerFacingAngle(playerid, 89.104393);
        }
        else if(clickedid == Bayside)
        {
            SetPlayerPos(playerid, -2276.782226, 2352.660888, 4.565527);
            SetPlayerFacingAngle(playerid, 55.755527);
        }
        else if(clickedid == Dillimore)
        {
            SetPlayerPos(playerid, 665.454406, -580.834106, 16.063018);
            SetPlayerFacingAngle(playerid, 89.482643);
        }
        else if(clickedid == Creek)
        {
            SetPlayerPos(playerid, 2271.369140, 27.635885, 26.166128);
            SetPlayerFacingAngle(playerid, 265.498046);
        }
        else if(clickedid == Stadium)
        {
            SetPlayerPos(playerid, 2683.412109, -1683.787841, 9.150171);
            SetPlayerFacingAngle(playerid, 100.126068);
        }
        else if(clickedid == Insurence)
        {
            SetPlayerPos(playerid, 2060.800781, -1910.922851, 13.546875);
            SetPlayerFacingAngle(playerid, 271.402252);
        }
        else if(clickedid == Docks)
        {
            SetPlayerPos(playerid, 385.550140, -2075.771484, 7.835937);
            SetPlayerFacingAngle(playerid, 273.933563);
        }
        else if(clickedid == Close)
        {
            TextDrawHideForPlayer(playerid, Box);
            TextDrawHideForPlayer(playerid, TeleportMenu);
            TextDrawHideForPlayer(playerid, AllSaints);
            TextDrawHideForPlayer(playerid, CountyCentral);
            TextDrawHideForPlayer(playerid, Unity);
            TextDrawHideForPlayer(playerid, Airport);
            TextDrawHideForPlayer(playerid, Verona);
            TextDrawHideForPlayer(playerid, Skate);
            TextDrawHideForPlayer(playerid, VIP);
            TextDrawHideForPlayer(playerid, News);
            TextDrawHideForPlayer(playerid, Bank);
            TextDrawHideForPlayer(playerid, Jefferson);
            TextDrawHideForPlayer(playerid, LRG);
            TextDrawHideForPlayer(playerid, WAG);
            TextDrawHideForPlayer(playerid, Transfender);
            TextDrawHideForPlayer(playerid, Pier);
            TextDrawHideForPlayer(playerid, FBI);
            TextDrawHideForPlayer(playerid, Gaton);
            TextDrawHideForPlayer(playerid, Bayside);
            TextDrawHideForPlayer(playerid, Dillimore);
            TextDrawHideForPlayer(playerid, Creek);
            TextDrawHideForPlayer(playerid, Stadium);
            TextDrawHideForPlayer(playerid, Insurence);
            TextDrawHideForPlayer(playerid, Docks);
            TextDrawHideForPlayer(playerid, Version);
            TextDrawHideForPlayer(playerid, Close);
            TextDrawHideForPlayer(playerid, RedBox);
            CancelSelectTextDraw(playerid);
        }
        TextDrawHideForPlayer(playerid, Box);
        TextDrawHideForPlayer(playerid, TeleportMenu);
        TextDrawHideForPlayer(playerid, AllSaints);
        TextDrawHideForPlayer(playerid, CountyCentral);
        TextDrawHideForPlayer(playerid, Unity);
        TextDrawHideForPlayer(playerid, Airport);
        TextDrawHideForPlayer(playerid, Verona);
        TextDrawHideForPlayer(playerid, Skate);
        TextDrawHideForPlayer(playerid, VIP);
        TextDrawHideForPlayer(playerid, News);
        TextDrawHideForPlayer(playerid, Bank);
        TextDrawHideForPlayer(playerid, Jefferson);
        TextDrawHideForPlayer(playerid, LRG);
        TextDrawHideForPlayer(playerid, WAG);
        TextDrawHideForPlayer(playerid, Transfender);
        TextDrawHideForPlayer(playerid, Pier);
        TextDrawHideForPlayer(playerid, FBI);
        TextDrawHideForPlayer(playerid, Gaton);
        TextDrawHideForPlayer(playerid, Bayside);
        TextDrawHideForPlayer(playerid, Dillimore);
        TextDrawHideForPlayer(playerid, Creek);
        TextDrawHideForPlayer(playerid, Stadium);
        TextDrawHideForPlayer(playerid, Insurence);
        TextDrawHideForPlayer(playerid, Docks);
        TextDrawHideForPlayer(playerid, Version);
        TextDrawHideForPlayer(playerid, Close);
        TextDrawHideForPlayer(playerid, RedBox);
        CancelSelectTextDraw(playerid);
    }
    return 1;
}
Is there anyone that can help me?

Thanks for reading this!
Reply
#2

What is your problem?
Reply
#3

ehm, if I go and try to tp to the bank do I teleport into Fishing Docks instead, if I move my mouse to the left of the textdraw (outside the textdraw) can I choose to teleport in all fields at the right... i'll upload a video soon as possible as I aren't that good of explaining
Reply
#4

This video shows the bug and helps me explain my problem.
Link to the video of the bug - *******

I would be happy if someone could help me out
Reply
#5

The select textdraw isn't based on the physical location of the text, it's based on the TextDrawTextSize coordinates.
Reply
#6

so I got to make the TextDrawSize smaller then the original and add one line instead of 2 lines beside each other?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)