SA-MP Forums Archive
[Help] Selectable Player Textdraws Problem - 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: [Help] Selectable Player Textdraws Problem (/showthread.php?tid=521961)



[Help] Selectable Player Textdraws Problem - luis_mendoza - 25.06.2014

So I have a problem with player textdraws. I 've made a register system with player clickable textdraws and when I click a textdraw it shows another dialog instead of the one I made to show.
And also only the registration textdraws are shown, but It opens the dialog of login when I click the registration textdraw.This is really confusing me.Doest it affect maybe cause the textdraws are on same place ?

Here are the codes:

pawn Code:
if(playertextid == Registration[playerid]){
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Please enter your password","Enter a Password below","Enter","Close");
    }

pawn Code:
if(playertextid == LogIN[playerid]){
    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Close");
    }
What could be the problem ?


Respuesta: [Help] Selectable Player Textdraws Problem - adri1 - 26.06.2014

For clickeable textdraw you must use TextDrawSize/PlayerTextDrawSize.


EDIT:
Change aligment to center
pawn Code:
PlayerTextDrawAlignment(playerid, Registration[playerid], 2);
PlayerTextDrawTextSize(playerid, Registration[playerid], 20.0, 400.0);


//Login too
PlayerTextDrawAlignment(playerid, LogIN[playerid], 2);
PlayerTextDrawTextSize(playerid, LogIN[playerid], 20.0, 400.0);



Respuesta: [Help] Selectable Player Textdraws Problem - adri1 - 26.06.2014

sorry double post...


Re: [Help] Selectable Player Textdraws Problem - luis_mendoza - 26.06.2014

It still loads to me the login instead of register when I click the register playertext.