25.06.2014, 12:39
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:
What could be the problem ?
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");
}