03.07.2012, 10:48
well this is my first thread on Script help ,
i want you guys to solve my problem.
please look.
i put this below script on OnGameModeInit
and
and i put this line on OnPlayerRequestClass
and last i put those in OnPlayerClickTextDraw
then compile is well done,
but in game there is a problem,
i just got in game and clicked those textdraws once and it worked,
but when i get in game and click one more time, it doesn't work.
what is wrong with me?
i want you guys to solve my problem.
please look.
i put this below script on OnGameModeInit
and
Код:
Textdraw4 = TextDrawCreate(480.000000, 313.000000, "LOGIN"); TextDrawBackgroundColor(Textdraw4, 255); TextDrawFont(Textdraw4, 1); TextDrawLetterSize(Textdraw4, 0.609999, 1.600000); TextDrawColor(Textdraw4, -1); TextDrawSetOutline(Textdraw4, 0); TextDrawSetProportional(Textdraw4, 1); TextDrawSetShadow(Textdraw4, 2); Textdraw5 = TextDrawCreate(550.000000, 313.000000, "/ EXIT"); TextDrawBackgroundColor(Textdraw5, 255); TextDrawFont(Textdraw5, 1); TextDrawLetterSize(Textdraw5, 0.750000, 1.699999); TextDrawColor(Textdraw5, -1); TextDrawSetOutline(Textdraw5, 0); TextDrawSetProportional(Textdraw5, 1); TextDrawSetShadow(Textdraw5, 2); TextDrawSetSelectable(Textdraw4, true); TextDrawSetSelectable(Textdraw5, true);
Код:
SelectTextDraw(playerid,COLOR_YELLOW); TextDrawShowForPlayer(playerid, Textdraw4); TextDrawShowForPlayer(playerid, Textdraw5); TextDrawShowForPlayer(playerid, Textdraw6);
Код:
TextDrawHideForPlayer(playerid,Textdraw4); TextDrawHideForPlayer(playerid,Textdraw5); TextDrawHideForPlayer(playerid,Textdraw6); CancelSelectTextDraw(playerid);
but in game there is a problem,
i just got in game and clicked those textdraws once and it worked,
but when i get in game and click one more time, it doesn't work.
what is wrong with me?