PDA

View Full Version : [HELP]: Textdraws (Again) !


Areax
22/10/2013, 05:30 PM
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:
new Text:Textdraw17;
OnGameModeInit:

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:
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 (http://prntscr.com/1z0m1r)

But Soldier isn't clickable, Medic and Sniper are.

Pottus
22/10/2013, 05:32 PM
TextDrawTextSize(Textdraw17, 455.000000, -58.333354);

Areax
22/10/2013, 05:35 PM
What the fuck.. ? I just had to delete " - " ? :O Thank you ! REP+