SA-MP Forums Archive
What wrong here. - 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: What wrong here. (/showthread.php?tid=635788)



What wrong here. - RedRex - 13.06.2017

Im trying to made a textdraws but there a problem... when i clicked.


PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(
clickedid == Textdraw5)
    {
        
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFB404}Account InLoading", "{047EFF}Welcome, your name is {FFB404}available {047EFF}in the list of names Please enter your account password!","{43E104}Login","{FF0505}Quit");
    }
    if(
clickedid == Textdraw6)
    {
        
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "{FFB404}Singup Account", "{2044E4}Sorry but your name is {E18904}not available. {2044E4}Please log in with your account!", "{43E104}Register","{FF0505}Quit");
    }
    return 
1;
} 



Re: What wrong here. - RedRex - 14.06.2017

So any Help?


Re: What wrong here. - iLearner - 14.06.2017

What's the problem.


Re: What wrong here. - Kane - 14.06.2017

Is the textdraw set to selectable?
PHP код:
    TextDrawSetSelectable(textdraw, true); 



Re: What wrong here. - RedRex - 14.06.2017

Here my code about Textdraws

PHP код:
Textdraw5 = TextDrawCreate(205.600219, 182.186691, "LOGIN");
    
TextDrawLetterSize(Textdraw5, 0.618800, 3.444265);
    
TextDrawAlignment(Textdraw5, 1);
    
TextDrawColor(Textdraw5, -5963521);
    
TextDrawSetShadow(Textdraw5, 0);
    
TextDrawSetOutline(Textdraw5, 1);
    
TextDrawTextSize(Textdraw5, 2.0, 3.6);
    
TextDrawBackgroundColor(Textdraw5, 51);
    
TextDrawFont(Textdraw5, 1);
    
TextDrawSetProportional(Textdraw5, 1);
    
TextDrawSetSelectable(Textdraw5, true);
    
Textdraw6 = TextDrawCreate(338.400054, 180.693313, "Registering..");
    
TextDrawLetterSize(Textdraw6, 0.493999, 3.242666);
    
TextDrawAlignment(Textdraw6, 1);
    
TextDrawColor(Textdraw6, -16776961);
    
TextDrawSetShadow(Textdraw6, 0);
    
TextDrawSetOutline(Textdraw6, 1);
    
TextDrawTextSize(Textdraw5, 2.0, 3.6);
    
TextDrawBackgroundColor(Textdraw6, 51);
    
TextDrawFont(Textdraw6, 1);
    
TextDrawSetProportional(Textdraw6, 1);
    
TextDrawSetSelectable(Textdraw6, true); 
Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Is the textdraw set to selectable?
PHP код:
    TextDrawSetSelectable(textdraw, true); 
Yes creating at Textdraws


Re: What wrong here. - RedRex - 14.06.2017

here??


Re: What wrong here. - RedRex - 14.06.2017

Quote:
Originally Posted by iLearner
Посмотреть сообщение
What's the problem.
Only when i click to Textdraw5 there are nothing happend... and im creating a dialogs there for logging...