05.09.2018, 08:12
hello everyone - if i want when i press ESC this textdraw will close
sorry for my bad english
https://uphinhnhanh.com/image/3yKV3d
sorry for my bad english
https://uphinhnhanh.com/image/3yKV3d
if(clickedid == Text:65535) {
TextDrawHideForPlayer(playerid, YourTextDrawName);
}
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){
if(playertextid == PlayerText:65535){
// Hide the textdraws
}
}
Oh lol you meant that.
PHP код:
|
lol, it eror
./includes/3M26RP.pwn(110971) : error 035: argument type mismatch (argument 2) ./includes/3M26RP.pwn(110972) : error 035: argument type mismatch (argument 2) ./includes/3M26RP.pwn(110973) : error 035: argument type mismatch (argument 2) ./includes/3M26RP.pwn(110974) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
lol, it eror
./includes/3M26RP.pwn(110971) : error 035: argument type mismatch (argument 2) ./includes/3M26RP.pwn(110972) : error 035: argument type mismatch (argument 2) ./includes/3M26RP.pwn(110973) : error 035: argument type mismatch (argument 2) ./includes/3M26RP.pwn(110974) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
How about you post some code? We don't know how you defined your textdraw.
|
TextDrawHideForPlayer needs to be changed to PlayerTextDrawHide
Those are player texts |
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Text:INVALID_TEXT_DRAW)
{
//hide you'r textdraws
return 1;
}
return 0;
}
if(clickedid == Text:INVALID_TEXT_DRAW)
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){
if(playertextid == PlayerText:65535){
TextDrawHideForPlayer(playerid, DLTextDraws[12][playerid]);
TextDrawHideForPlayer(playerid, DLTextDraws[13][playerid]);
TextDrawHideForPlayer(playerid, DLTextDraws[14][playerid]);
TextDrawHideForPlayer(playerid, DLTextDraws[2][playerid]);
}
}
Did you try
PHP код:
|