Hide TextDraw Press ESC - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hide TextDraw Press ESC (
/showthread.php?tid=661790)
Hide TextDraw Press ESC -
rollercaster - 15.12.2018
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..
Re: Hide TextDraw Press ESC -
Kraeror - 15.12.2018
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.
|
Re: Hide TextDraw Press ESC -
rollercaster - 15.12.2018
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