[HELP]: Textdraws (Again) ! - 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: [HELP]: Textdraws (Again) ! (
/showthread.php?tid=471368)
[HELP]: Textdraws (Again) ! -
Areax - 22.10.2013
Hello SA-MP !
I got another problem with textdraws.
I made 3 clickable textdraws for class system, but i can click only 2 :/
Here is the code :
Top:
OnGameModeInit:
pawn Код:
Textdraw17 = TextDrawCreate(375.000000, 343.000152, "Soldier");
TextDrawLetterSize(Textdraw17, 0.449999, 1.600000);
TextDrawTextSize(Textdraw17, 455.000000, -58.333354);
TextDrawAlignment(Textdraw17, 1);
TextDrawColor(Textdraw17, 16711935);
TextDrawUseBox(Textdraw17, true);
TextDrawBoxColor(Textdraw17, 255);
TextDrawSetShadow(Textdraw17, 0);
TextDrawSetOutline(Textdraw17, 1);
TextDrawBackgroundColor(Textdraw17, 51);
TextDrawFont(Textdraw17, 2);
TextDrawSetProportional(Textdraw17, 1);
TextDrawSetSelectable(Textdraw17, true);
OnPlayerClickTextDraw:
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdrawid)
{
//other code
TextDrawShowForPlayer(playerid, Textdraw17);
SelectTextDraw(playerid, 0x808080C8);
}
if(clickedid == Textdraw17)
{
SendClientMessage(playerid, GREEN, "[CLASS]: {FFFFFF}You have picked up a {FFFF00}Soldier Class {FFFFFF}!");
}
return 1;
}
But it's not clickable, i can't click it for some reason. :/
Oh, btw, here is how it looks like:
Picture
But Soldier isn't clickable, Medic and Sniper are.
Re: [HELP]: Textdraws (Again) ! -
Pottus - 22.10.2013
TextDrawTextSize(Textdraw17, 455.000000,
-58.333354);
Re: [HELP]: Textdraws (Again) ! -
Areax - 22.10.2013
What the fuck.. ? I just had to delete " - " ? :O Thank you ! REP+