25.05.2012, 08:54
Hello.
I had a problem
i am planning to make ATM System with Clickable Textdraws.
i created textdraws. but when player see these textdraws. he cant press on it :S
any help?
in OnFilterScriptInit() i wrote:
in the dialog when player goes to login..
now? what's the problem here? :S
I had a problem
i am planning to make ATM System with Clickable Textdraws.
i created textdraws. but when player see these textdraws. he cant press on it :S
any help?
in OnFilterScriptInit() i wrote:
pawn Код:
public OnFilterScriptInit()
{
Textdraw1 = TextDrawCreate(310.000000, 122.000000, "ATM Login");
TextDrawAlignment(Textdraw1, 2);
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.899999, 2.000000);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 0.000000, 320.000000);
Textdraw4 = TextDrawCreate(230.000000, 190.000000, "1");
TextDrawAlignment(Textdraw4, 2);
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.400000, 2.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 255);
TextDrawTextSize(Textdraw4, 0.000000, -30.000000);
TextDrawSetSelectable(Textdraw4, 1);
//etc.etc.
}
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw8);
TextDrawShowForPlayer(playerid, Textdraw9);
TextDrawShowForPlayer(playerid, Textdraw10);
TextDrawShowForPlayer(playerid, Textdraw11);
TextDrawShowForPlayer(playerid, Textdraw12);
TextDrawShowForPlayer(playerid, Textdraw13);
TextDrawShowForPlayer(playerid, Textdraw14);
TextDrawShowForPlayer(playerid, Textdraw15);
SelectTextDraw(playerid, 0x00FF00FF);