[HELP]: Textdraws (Again) !
#1

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:
pawn Код:
new Text:Textdraw17;
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.
Reply
#2

TextDrawTextSize(Textdraw17, 455.000000, -58.333354);
Reply
#3

What the fuck.. ? I just had to delete " - " ? :O Thank you ! REP+
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)