07.06.2016, 20:34
(
Последний раз редактировалось Maximun; 08.06.2016 в 00:24.
)
Hello, Can someone help me please in that weird problem, It seems to me all is true and no errors, However, that textdraw is not selectable, I don't really know what's wrong here ....
Here is the code :
EDIT: Do someone know what's name of that IMG please ?
Problem Solved! Thanks to TwinkiDaBoss and iShawn for their support.
Here is the code :
PHP код:
new PlayerText: TD_Register[14][MAX_PLAYERS];
PlayerTextDrawShow(playerid, TD_Register[14][playerid]);
PlayerTextDrawSetSelectable(playerid, TD_Register[14][playerid], 1);
//******************************************************
TD_Register[14][playerid] = CreatePlayerTextDraw(playerid, 605.599670, 183.679946, "LD_BEAT:LEFT");
PlayerTextDrawLetterSize(playerid, TD_Register[14][playerid], 0.063997, -0.664533);
PlayerTextDrawTextSize(playerid, TD_Register[14][playerid], -9.600008, 8.213315);
PlayerTextDrawAlignment(playerid, TD_Register[14][playerid], 1);
PlayerTextDrawColor(playerid, TD_Register[14][playerid], -1);
PlayerTextDrawSetShadow(playerid, TD_Register[14][playerid], 0);
PlayerTextDrawSetOutline(playerid, TD_Register[14][playerid], 0);
PlayerTextDrawFont(playerid, TD_Register[14][playerid], 4);
PlayerTextDrawSetSelectable(playerid, TD_Register[14][playerid], 1);
//**********************************************************
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == TD_Register[14][playerid])
{
if(selval[0][playerid] == 0)
{
selval[0][playerid] = 1;
PlayerTextDrawSetString(playerid, TD_Register[6][playerid], "Male");
}
else if(selval[0][playerid] == 1)
{
selval[0][playerid] = 0;
PlayerTextDrawSetString(playerid, TD_Register[6][playerid], "Female");
}
}
return 1;
}
Problem Solved! Thanks to TwinkiDaBoss and iShawn for their support.