06.01.2016, 07:25
(
Последний раз редактировалось MikkiMapper; 06.01.2016 в 07:32.
Причина: Again problem
)
Hi, it's me again.
I work at one very interesting project, but i have problem here:
But have a problem with TextDraw click.
I check wiki, do it, without errors, but nothing happens...
Here is mine step by step to create this:
(Who can tell me more...)
Then
First i call this textdraw in command, maybe that is wrong or not?
I work at one very interesting project, but i have problem here:
But have a problem with TextDraw click.
I check wiki, do it, without errors, but nothing happens...
Here is mine step by step to create this:
(Who can tell me more...)
Код:
podloga7 = TextDrawCreate(434.823577, 379.750030, "X");
TextDrawLetterSize(podloga7, 0.449999, 1.100000);
TextDrawAlignment(podloga7, 1);
TextDrawColor(podloga7, -1);
TextDrawSetShadow(podloga7, 0);
TextDrawSetOutline(podloga7, 1);
TextDrawBackgroundColor(podloga7, 51);
TextDrawFont(podloga7, 1);
TextDrawSetProportional(podloga7, 1);
///
TextDrawSetSelectable(podloga7, true);
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == podloga7)
{
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid, podloga0);
TextDrawHideForPlayer(playerid, podloga1);
TextDrawHideForPlayer(playerid, podloga2);
TextDrawHideForPlayer(playerid, podloga3);
TextDrawHideForPlayer(playerid, podloga4);
TextDrawHideForPlayer(playerid, podloga5);
TextDrawHideForPlayer(playerid, podloga6);
TextDrawHideForPlayer(playerid, podloga7);
}
return 1;
}
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/uhvatimeakomozes", true))
{
TextDrawShowForPlayer(playerid, podloga0);
TextDrawShowForPlayer(playerid, podloga1);
TextDrawShowForPlayer(playerid, podloga2);
TextDrawShowForPlayer(playerid, podloga3);
TextDrawShowForPlayer(playerid, podloga4);
TextDrawShowForPlayer(playerid, podloga5);
TextDrawShowForPlayer(playerid, podloga6);
TextDrawShowForPlayer(playerid, podloga7);
TextDrawShowForPlayer(playerid, podloga8);
return 1;
}
return 0;
}



