Textdraw not working. [+rep!]
#1

Hello , I 've added a textdraw and i have done everything

now when i move my mouse near the textdraw it lights and it seems working fine

but when i Click nothing happens.
I'm using this Code
PHP код:
public OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
clickedid == TDEditor_TD[10]) 
        {
        new 
titlestring[64];
        new 
string[512];
        
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
        }
        else if(
clickedid == TDEditor_TD[6])
        {
        new 
titlestring[64];
        new 
string[512];
        
ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_PASSWORD,titlestring,string,"Register","Exit");
        }
        else if(
clickedid == TDEditor_TD[8]) 
        {
            
KickEx(playerid);
        } 
I've tried lots of this and none work even if i made SendClientMessage

and i 've checked that its selectable is true and also none works

Please help. [+rep]
Reply
#2

Are you sure you properly store the ID in TDEditor_TD?

Also, why define a empty 512 cell long variable if you can just do ""?
Reply
#3

Quote:
Originally Posted by Extremo
Посмотреть сообщение
Are you sure you properly store the ID in TDEditor_TD?

Also, why define a empty 512 cell long variable if you can just do ""?
I'm using new Text:TDEditor_TD[11];

and they are 11 textdraws with 0

and i don't understand the thing about string , cuz this proplem happend me before with onther values without String
Reply
#4

BUMP
Reply
#5

show us TextDrawCreate TextDrawSize
Reply
#6

Are you using boxes with the text? If so: are you using two separate textdraws for your box and for the text in it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)