17.03.2013, 08:23
Hello.I have a BIG PROBLEM with dialogs.THE PROBLEM:I create an Register Dialog with DIALOG_STYLE_PASSWORD style,but,when I enter on server to register,it appear just like an DIALOG_STYLE_MSGBOX!!!WTF?!?
P.S:I think to try make again the script with Script Machine...
- The link of image is here
- The code of Dialog and OnDialogResponse is below:
Код:ShowPlayerDialog(playerid,0,DIALOG_STYLE_PASSWORD,"Register","Te rugam sa te inregistrezi mai jos","Register","Kick");/*The dialog*/ if(dialogid == 0) { if(response) { new password = inputtext[128]; new string[128]; INI_Open(file); INI_WriteString(file,"Parola",password); new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,"pName",sizeof(pName)); INI_WriteString(file,"Nume",pName); INI_WriteInt("Level",PInfo[playerid][level]); INI_WriteInt("Cash",PInfo[playerid][cash]); INI_WriteInt("Coins",PInfo[playerid][coins]); INI_WriteInt("Score",PInfo[playerid][score]); SendClientMessage(playerid,0x66FF00FF,"Te-ai inregistrat cu succes!!!"); format(string,128,"Te-ai inregistrat cu succes %s cu parola %s !!!",pName,password); SendClientMessage(playerid,0x66FF00FF,string); } else { SendClientMessage(playerid,0xFF0000FF,"Nu te-ai inregistrat!Ai primit KICK!!!"); Kick(playerid); } }/*OnDialogResponse*/
P.S:I think to try make again the script with Script Machine...