Can't select textdraw - 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: Can't select textdraw (
/showthread.php?tid=540146)
Can't select textdraw -
Micael_Nees - 03.10.2014
I'm trying to create a textdraw but when i click on the textdraw created nothing happens..
pawn Код:
TDEntrar = TextDrawCreate(317.000000, 152.000000, "ENTRAR");
TextDrawAlignment(TDEntrar, 2);
TextDrawBackgroundColor(TDEntrar, 255);
TextDrawFont(TDEntrar, 1);
TextDrawLetterSize(TDEntrar, 0.619998, 1.799999);
TextDrawColor(TDEntrar, -1);
TextDrawSetOutline(TDEntrar, 0);
TextDrawSetProportional(TDEntrar, 1);
TextDrawSetShadow(TDEntrar, 1);
TextDrawUseBox(TDEntrar, 1);
TextDrawBoxColor(TDEntrar, 0);
TextDrawTextSize(TDEntrar, 0.000000, 108.000000);
TextDrawSetSelectable(Text:TDEntrar, 1);
Why can't select it?
Respuesta: Can't select textdraw -
Swedky - 03.10.2014
You are spanish right?
Change:
pawn Код:
TextDrawTextSize(TDEntrar, 0.000000, 108.000000);
To:
pawn Код:
TextDrawTextSize(TDEntrar, 20.000000, 108.000000); // Or try other X value.
Regards.
Re: Can't select textdraw -
JJack - 03.10.2014
Did you add "OnPlayerClickTextDraw" ?