20.07.2011, 17:45
PHP код:
switch(dialogid)
{
case DIALOG_REGISTER:
{
if(!response) return SetKick(playerid,-1,".бзш мцаъ одщшъ бдшщод");
if(response)
{
if(strlen(inputtext) < 5 || strlen(inputtext) > 10) {
SendClientMessage(playerid, COLOR_RED, ".аешк дсйсод цшйлд мдйеъ бйп 5 м 10 ъеейн");
format(stringEx, sizeof(stringEx),".бшек дба, длйрей щмк айре шщен\n\n%s\n:шщен моид аъ сйсоък лгй мдйшщн",GetName(playerid));
return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"{A9A9A9}"Community_Name" // змеп дшщод",stringEx,"дйшщн","ца одщшъ");
}
RegisterPlayer(playerid,inputtext);
SendClientMessage(playerid,COLOR_GREY," *** Please wait...");
SetTimerEx("RegPlayer",2000,false,"ii",playerid,inputtext);
}
}
forward RegPlayer(playerid,pass[]);
public RegPlayer(playerid,pass[])
{
new Pass[12],Name[25];
SendClientMessage(playerid,lightblue,"--- !зщберк рецш бдцмзд ---");
format(Name, sizeof(Name),"Account: %s",GetName(playerid));
SendClientMessage(playerid,COLOR_ORANGE,Name);
format(Pass, sizeof(Pass),"Password: %s",pass);
SendClientMessage(playerid,COLOR_ORANGE,Name);
//SendClientMessage(playerid, COLOR_ORANGE,"/Setting - мтшйлъ двгшеъ дощъощ щмк шщен");
SendClientMessage(playerid, COLOR_RED, "^ .ара цмн фшийн амд тм оръ мжлеш аъ фшийк *^");
PlaySound(playerid, 1057);
format(stringEx, sizeof(stringEx),"{00FF00}!зщберк рецш бдцмзд\n\n{FF8C00}%s :щн ощъощ\n{FF0000}%s :сйсод\n /Setting - мтшйлъ двгшеъ дощъощ щмк шщен",GetName(playerid),pass);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,"{00FFFF}"Community_Name" // змеп дшщод",stringEx,"айщеш","");
return true;
}
Why it does not show the password?