SA-MP Forums Archive
Issue with textdraw not hideing when i hide it - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Issue with textdraw not hideing when i hide it (/showthread.php?tid=528770)



Issue with textdraw not hideing when i hide it - JessThompson - 29.07.2014

Help my textdraw is not dissapering even tho i hide it

pawn Код:
ShowMainMenuGUI(playerid)
{
    InsideMainMenu[playerid] = true;

    MainMenuUpdateForPlayer(playerid);

    TextDrawShowForPlayer(playerid, Loginbox0);
    TextDrawShowForPlayer(playerid, Loginbox1);
    TextDrawShowForPlayer(playerid, Loginbox2);
    TextDrawShowForPlayer(playerid, Loginbox3);
    TextDrawShowForPlayer(playerid, Loginbox4);
    TextDrawShowForPlayer(playerid, Loginbox5);
    TextDrawShowForPlayer(playerid, Loginbox6);
    TextDrawShowForPlayer(playerid, Loginbox7);
    TextDrawShowForPlayer(playerid, Loginbox8);
    TextDrawShowForPlayer(playerid, Loginbox9);
    TextDrawShowForPlayer(playerid, Loginbox10);
}

HideMainMenuGUI(playerid)
{
    InsideMainMenu[playerid] = false;

    TextDrawHideForPlayer(playerid, Loginbox0);
    TextDrawHideForPlayer(playerid, Loginbox1);
    TextDrawHideForPlayer(playerid, Loginbox2);
    TextDrawHideForPlayer(playerid, Loginbox3);
    TextDrawHideForPlayer(playerid, Loginbox4);
    TextDrawHideForPlayer(playerid, Loginbox5);
    TextDrawHideForPlayer(playerid, Loginbox6);
    TextDrawHideForPlayer(playerid, Loginbox7);
    TextDrawHideForPlayer(playerid, Loginbox8);
    TextDrawHideForPlayer(playerid, Loginbox9);
    TextDrawHideForPlayer(playerid, Loginbox10);

}



Re: Issue with textdraw not hideing when i hide it - JessThompson - 29.07.2014

Resolved, Had to make them like Loginbox[0] ect and new loginbox [ 10 ]