14.04.2019, 07:58
There is 3selectable textdraws (Select, <- Prev and Next ->)
When I hover mouse to Select, it works fine but when i hover mouse to Prev or Next, it selects multi options
If i hover cursor to Prev, it selects all options that are available
Textdraw
When I hover mouse to Select, it works fine but when i hover mouse to Prev or Next, it selects multi options
If i hover cursor to Prev, it selects all options that are available
Textdraw
PHP Code:
new PlayerText:SkinSelectTD[MAX_PLAYERS][5];
public OnPlayerConnect(playerid){
SkinSelectTD[playerid][0] = CreatePlayerTextDraw(playerid, 121.332351, 129.916671, "box");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][0], 0.000000, 28.319175);
PlayerTextDrawTextSize(playerid, SkinSelectTD[playerid][0], 262.000000, 0.000000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][0], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][0], -1);
PlayerTextDrawUseBox(playerid, SkinSelectTD[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, SkinSelectTD[playerid][0], 130);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][0], 255);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][0], 0);
SkinSelectTD[playerid][1] = CreatePlayerTextDraw(playerid, 125.849227, 137.500045, "");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][1], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, SkinSelectTD[playerid][1], 132.000000, 186.000000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][1], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][1], 65);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][1], 5);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawSetPreviewModel(playerid, SkinSelectTD[playerid][1], 0);
PlayerTextDrawSetPreviewRot(playerid, SkinSelectTD[playerid][1], 0.000000, 0.000000, 0.000000, 1.000000);
SkinSelectTD[playerid][2] = CreatePlayerTextDraw(playerid, 167.715972, 366.166717, "<Prev");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][2], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][2], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][2], -2139062017);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][2], 255);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid, SkinSelectTD[playerid][2], true);
SkinSelectTD[playerid][3] = CreatePlayerTextDraw(playerid, 173.338195, 348.666870, "Next>");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][3], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][3], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][3], -2139062017);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][3], 226);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][3], 1);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][3], 0);
PlayerTextDrawSetSelectable(playerid, SkinSelectTD[playerid][3], true);
SkinSelectTD[playerid][4] = CreatePlayerTextDraw(playerid, 172.401123, 332.333251, "Select");
PlayerTextDrawLetterSize(playerid, SkinSelectTD[playerid][4], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, SkinSelectTD[playerid][4], 1);
PlayerTextDrawColor(playerid, SkinSelectTD[playerid][4], -2139062017);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, SkinSelectTD[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, SkinSelectTD[playerid][4], 255);
PlayerTextDrawFont(playerid, SkinSelectTD[playerid][4], 1);
PlayerTextDrawSetProportional(playerid, SkinSelectTD[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, SkinSelectTD[playerid][4], 0);
PlayerTextDrawSetSelectable(playerid, SkinSelectTD[playerid][4], true);
return 1;
}