Hide TextDraw Press ESC
#1

Hello, it can hide a textdraw using OnPlayerClickPlayerTextDraw (CreatePlayerTextDraw)?
Ex how about:


Код HTML:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == Text:INVALID_TEXT_DRAW)
	{
		// Hide td
	}
	return 1;
}
I want to do it:

Код HTML:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
	if(playertextid == PlayerText: INVALID_TEXT_DRAW)
	{
		// Hide td
	}
	return 1;
}
But it does not work..
Reply
#2

Read it: "https://sampwiki.blast.hk/wiki/OnPlayerClickPlayerTextDraw"
There is important note and it says:
Quote:

When a player presses ESC to cancel selecting a textdraw, OnPlayerClickTextDraw is called with a textdraw ID of 'INVALID_TEXT_DRAW'. OnPlayerClickPlayerTextDraw won't be called also.

Reply
#3

so it can not be put or?
I tried several variants found on the internet but did not go ..
I tried to use OnPlayerClickPlayerTextDraw but it does not work as I wanted
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)