Text draw selectable
#1

Hi. i wanted to make select skill text draw i made everything right.

But when i joined to the server i could pick just the first skill. what happened to the others. here is photo to show you what i mean



and here is the code:
pawn Code:
Public OnPlayerConnect(playerid)
{
SelectSkillTD[0] = TextDrawCreate(255.000000, 229.000000, " Thief");
    TextDrawBackgroundColor(SelectSkillTD[0], 255);
    TextDrawFont(SelectSkillTD[0], 0);
    TextDrawLetterSize(SelectSkillTD[0], 0.519999, 0.998898);
    TextDrawColor(SelectSkillTD[0], -1);
    TextDrawSetOutline(SelectSkillTD[0], 0);
    TextDrawSetProportional(SelectSkillTD[0], 1);
    TextDrawSetShadow(SelectSkillTD[0], 1);
    TextDrawUseBox(SelectSkillTD[0], 1);
    TextDrawBoxColor(SelectSkillTD[0], -1347440641);
    TextDrawTextSize(SelectSkillTD[0], 352.000000, 0.000000);

    SelectSkillTD1[4] = TextDrawCreate(303.000000, 143.000000, "Select Skill");
    TextDrawAlignment(SelectSkillTD1[4], 2);
    TextDrawBackgroundColor(SelectSkillTD1[4], 255);
    TextDrawFont(SelectSkillTD1[4], 0);
    TextDrawLetterSize(SelectSkillTD1[4], 0.429998, 1.299998);
    TextDrawColor(SelectSkillTD1[4], -16776961);
    TextDrawSetOutline(SelectSkillTD1[4], 1);
    TextDrawSetProportional(SelectSkillTD1[4], 1);
    TextDrawUseBox(SelectSkillTD1[4], 1);
    TextDrawBoxColor(SelectSkillTD1[4], 255);
    TextDrawTextSize(SelectSkillTD1[4], 302.000000, 97.000000);
    TextDrawSetSelectable(SelectSkillTD1[4],false);

    SelectSkillTD[2] = TextDrawCreate(255.000000, 159.000000, " Rapist");
    TextDrawBackgroundColor(SelectSkillTD[2], 255);
    TextDrawFont(SelectSkillTD[2], 0);
    TextDrawLetterSize(SelectSkillTD[2], 0.560000, 0.999998);
    TextDrawColor(SelectSkillTD[2], -1);
    TextDrawSetOutline(SelectSkillTD[2], 0);
    TextDrawSetProportional(SelectSkillTD[2], 1);
    TextDrawSetShadow(SelectSkillTD[2], 1);
    TextDrawUseBox(SelectSkillTD[2], 1);
    TextDrawBoxColor(SelectSkillTD[2], -1347440641);
    TextDrawTextSize(SelectSkillTD[2], 352.000000, 40.000000);

    SelectSkillTD[3] = TextDrawCreate(255.000000, 173.000000, " Drug Dealer");
    TextDrawBackgroundColor(SelectSkillTD[3], 255);
    TextDrawFont(SelectSkillTD[3], 0);
    TextDrawLetterSize(SelectSkillTD[3], 0.560000, 0.999899);
    TextDrawColor(SelectSkillTD[3], -1);
    TextDrawSetOutline(SelectSkillTD[3], 0);
    TextDrawSetProportional(SelectSkillTD[3], 1);
    TextDrawSetShadow(SelectSkillTD[3], 1);
    TextDrawUseBox(SelectSkillTD[3], 1);
    TextDrawBoxColor(SelectSkillTD[3], -1347440641);
    TextDrawTextSize(SelectSkillTD[3], 352.000000, 0.000000);

    SelectSkillTD[4] = TextDrawCreate(255.000000, 188.000000, " Weapon Dealer");
    TextDrawBackgroundColor(SelectSkillTD[4], 255);
    TextDrawFont(SelectSkillTD[4], 0);
    TextDrawLetterSize(SelectSkillTD[4], 0.519999, 0.998898);
    TextDrawColor(SelectSkillTD[4], -1);
    TextDrawSetOutline(SelectSkillTD[4], 0);
    TextDrawSetProportional(SelectSkillTD[4], 1);
    TextDrawSetShadow(SelectSkillTD[4], 1);
    TextDrawUseBox(SelectSkillTD[4], 1);
    TextDrawBoxColor(SelectSkillTD[4], -1347440641);
    TextDrawTextSize(SelectSkillTD[4], 352.000000, 0.000000);

    SelectSkillTD[5] = TextDrawCreate(255.000000, 202.000000, " Hitman");
    TextDrawBackgroundColor(SelectSkillTD[5], 255);
    TextDrawFont(SelectSkillTD[5], 0);
    TextDrawLetterSize(SelectSkillTD[5], 0.519999, 0.998898);
    TextDrawColor(SelectSkillTD[5], -1);
    TextDrawSetOutline(SelectSkillTD[5], 0);
    TextDrawSetProportional(SelectSkillTD[5], 1);
    TextDrawSetShadow(SelectSkillTD[5], 1);
    TextDrawUseBox(SelectSkillTD[5], 1);
    TextDrawBoxColor(SelectSkillTD[5], -1347440641);
    TextDrawTextSize(SelectSkillTD[5], 352.000000, 0.000000);

    SelectSkillTD[6] = TextDrawCreate(255.000000, 215.000000, " Kidnapper");
    TextDrawBackgroundColor(SelectSkillTD[6], 255);
    TextDrawFont(SelectSkillTD[6], 0);
    TextDrawLetterSize(SelectSkillTD[6], 0.519999, 0.998898);
    TextDrawColor(SelectSkillTD[6], -1);
    TextDrawSetOutline(SelectSkillTD[6], 0);
    TextDrawSetProportional(SelectSkillTD[6], 1);
    TextDrawSetShadow(SelectSkillTD[6], 1);
    TextDrawUseBox(SelectSkillTD[6], 1);
    TextDrawBoxColor(SelectSkillTD[6], -1347440641);
    TextDrawTextSize(SelectSkillTD[6], 352.000000, 0.000000);

    SelectSkillTD[7] = TextDrawCreate(255.000000, 243.000000, " Terrorist");
    TextDrawBackgroundColor(SelectSkillTD[7], 255);
    TextDrawFont(SelectSkillTD[7], 0);
    TextDrawLetterSize(SelectSkillTD[7], 0.519999, 0.998898);
    TextDrawColor(SelectSkillTD[7], -1);
    TextDrawSetOutline(SelectSkillTD[7], 0);
    TextDrawSetProportional(SelectSkillTD[7], 1);
    TextDrawSetShadow(SelectSkillTD[7], 1);
    TextDrawUseBox(SelectSkillTD[7], 1);
    TextDrawBoxColor(SelectSkillTD[7], -1347440641);
    TextDrawTextSize(SelectSkillTD[7], 352.000000, 0.000000);

    SelectSkillTD1[0] = TextDrawCreate(255.000000, 137.000000, " ");
    TextDrawBackgroundColor(SelectSkillTD1[0], 255);
    TextDrawFont(SelectSkillTD1[0], 1);
    TextDrawLetterSize(SelectSkillTD1[0], 2.759999, 0.199999);
    TextDrawColor(SelectSkillTD1[0], -1);
    TextDrawSetOutline(SelectSkillTD1[0], 0);
    TextDrawSetProportional(SelectSkillTD1[0], 1);
    TextDrawSetShadow(SelectSkillTD1[0], 1);
    TextDrawUseBox(SelectSkillTD1[0], 1);
    TextDrawBoxColor(SelectSkillTD1[0], -2147450625);
    TextDrawTextSize(SelectSkillTD1[0], 353.000000, -27.000000);
    TextDrawSetSelectable(SelectSkillTD1[0],false);
//TextDrawSetSelectable(SelectSkillTD[2],1);
    SelectSkillTD1[1] = TextDrawCreate(256.000000, 137.300003, "      ");
    TextDrawBackgroundColor(SelectSkillTD1[1], 255);
    TextDrawFont(SelectSkillTD1[1], 1);
    TextDrawLetterSize(SelectSkillTD1[1], 7.500000, 2.679698);
    TextDrawColor(SelectSkillTD1[1], 255);
    TextDrawSetOutline(SelectSkillTD1[1], 0);
    TextDrawSetProportional(SelectSkillTD1[1], 1);
    TextDrawSetShadow(SelectSkillTD1[1], 1);
    TextDrawUseBox(SelectSkillTD1[1], 1);
    TextDrawBoxColor(SelectSkillTD1[1], -2147450625);
    TextDrawTextSize(SelectSkillTD1[1], 246.000000, 66.000000);
    TextDrawSetSelectable(SelectSkillTD1[1],false);

    SelectSkillTD1[2] = TextDrawCreate(358.000000, 137.300003, "      ");
    TextDrawBackgroundColor(SelectSkillTD1[2], 255);
    TextDrawFont(SelectSkillTD1[2], 1);
    TextDrawLetterSize(SelectSkillTD1[2], 0.850000, 2.559798);
    TextDrawColor(SelectSkillTD1[2], 255);
    TextDrawSetOutline(SelectSkillTD1[2], 0);
    TextDrawSetProportional(SelectSkillTD1[2], 1);
    TextDrawSetShadow(SelectSkillTD1[2], 1);
    TextDrawUseBox(SelectSkillTD1[2], 1);
    TextDrawBoxColor(SelectSkillTD1[2], -2147450625);
    TextDrawTextSize(SelectSkillTD1[2], 355.000000, 66.000000);
    TextDrawSetSelectable(SelectSkillTD1[2],false);

    SelectSkillTD1[3] = TextDrawCreate(253.300003, 258.000000, " ");
    TextDrawBackgroundColor(SelectSkillTD1[3], 255);
    TextDrawFont(SelectSkillTD1[3], 1);
    TextDrawLetterSize(SelectSkillTD1[3], 2.979999, 1.199998);
    TextDrawColor(SelectSkillTD1[3], -1);
    TextDrawSetOutline(SelectSkillTD1[3], 0);
    TextDrawSetProportional(SelectSkillTD1[3], 1);
    TextDrawSetShadow(SelectSkillTD1[3], 1);
    TextDrawUseBox(SelectSkillTD1[3], 1);
    TextDrawBoxColor(SelectSkillTD1[3], -2147450625);
    TextDrawTextSize(SelectSkillTD1[3], 355.000000, -51.000000);
    TextDrawSetSelectable(SelectSkillTD1[3],false);
   
    for(new i = 0; i < sizeof(SelectSkillTD); i++)
    {
        TextDrawSetSelectable(SelectSkillTD[i],true);
    }
}
public OnPlayerSpawn(playerid)
{
    SelectTextDraw(playerid,COLOR_PURPLE);
}
i didn't write the rest like on playerclicktextdraw. because of the Copyright
Reply
#2

Hello anyone ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)