Problema con TD
#1

Hola amigos esto no es un error, es que hice un textdraw clickeable pero no funciona nomas aparece el td pero no funciona fuck xd miren como lo tengo yo


Код:
new Text:CAJAINICIO;
new Text:aa;
new Text:bb;
new Text:cc;
new Text:dd;
new Text:e;

//y obviamente el cуdigo del textdraw en OnGameModel 

En OnPlayerConnect, Pongo la funcion para que salgan cuando entre el player

public CargarTDClick()
{

TextDrawSetSelectable(a, false); // No se puede clickear el textdraw
TextDrawSetSelectable(b, false); // Se puede clickear
TextDrawSetSelectable(c, true); // Se puede clickear
TextDrawSetSelectable(d, true); // Se puede clickear
TextDrawSetSelectable(e, true); // Se puede clickear
TextDrawSetSelectable(f, false); // Se puede clickear

}

//para que diga k td es clickeable eso lo pongo en OnGameModel

//y lo que hara al clickear
public OnPlayerClickTextDraw(playerid,Text:clickedid)
{
if(clickedid == a) return MostrarAccion(playerid);
if(clickedid == b) return MostrarAccion(playerid);
if(clickedid == c) return Kick(playerid);

return 1;
}
pero nomas me sale el td pero no puedo clickear ni nada y estoy poniendo las id bien, solo k acб edite para no poner el codigo, amigos por que no cae?
Reply
#2

no entendн nada loco, pero te asegurastes de poner el box ON y hacerle el TD tipo botуn?

https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw

lee la nota..

pawn Код:
Important Note: The clickable area is defined by TextDrawTextSize. The x and y parameters passed to that function must not be zero or negative.
usa [ pawn] [/ pawn]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)