SA-MP Forums Archive
Textdraw not working. [+rep!] - 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: Textdraw not working. [+rep!] (/showthread.php?tid=564416)



Textdraw not working. [+rep!] - MoemenWalid - 21.02.2015

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]


Re: Textdraw not working. [+rep!] - Extremo - 21.02.2015

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 ""?


Re: Textdraw not working. [+rep!] - MoemenWalid - 21.02.2015

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


Re: Textdraw not working. [+rep!] - MoemenWalid - 21.02.2015

BUMP


Re: Textdraw not working. [+rep!] - Golf - 21.02.2015

show us TextDrawCreate TextDrawSize


Re: Textdraw not working. [+rep!] - AndySedeyn - 21.02.2015

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