PHP код:
if(dialogid == RegisterDialog)
{
if(response == 1)
{
GetPlayerName(playerid,Name,24);
format(BBFile, sizeof(BBFile), "BikiniBottom/Users/%s.ini",Name);
if(dini_Exists(BBFile)) return SendClientMessage(playerid,ColorRed,".аъд лбш шщен"); ShowLoginDialog
if(!strlen(inputtext)) return SendClientMessage(playerid,ColorRed,".ма длрсъ сйсоа мдшщод, ара длрс сйсоа"); ShowRegisterDialog
if(strlen(inputtext) < 4 || strlen(inputtext) > 15 ) return SendClientMessage(playerid,ColorRed,"рйъп мдщъощ бсйсод шч бйп дъеейн 4 тг 15"); ShowRegisterDialog
dini_Create(BBFile);
dini_Set(BBFile,"Nick",Name);
dini_Set(BBFile,"Password",inputtext);
format(Str, sizeof(Str), "%s :щн дощъощ / дрйч щмк деа",Name,dini_Get(BBFile,"Nick")); // User Name / Nick
SendClientMessage(playerid,ColorLightBlue,Str);
format(Str, sizeof(Str), "%s :сйсоък дйа",inputtext,dini_Get(BBFile,"Password")); // Password
SendClientMessage(playerid,ColorYellow,Str);
format(Str, sizeof(Str), "{FF2400}Bikini{FFDAB9}Bot{FF2400}tom:{FFDAB9} дцишу ерйшщн амйре, бшле божм иеб %s дщзчп",dini_Get(BBFile,"Nick"));
SendClientMessageToAll(ColorBot,Str);
//Online[playerid] == 1;
}
}
if(dialogid == LoginDialog)
{
if(response == 1)
{
GetPlayerName(playerid,Name,24);
format(BBFile, sizeof(BBFile), "BikiniBottom/Users/%s.ini",Name);
if(!strlen(inputtext)) return SendClientMessage(playerid,ColorRed,".ма длрсъ сйсоа мдъзбшеъ, ара длрс сйсоа"); ShowLoginDialog
if(strlen(inputtext) < 4 || strlen(inputtext) > 15 ) return SendClientMessage(playerid,ColorRed,"! сйсоа бдъзбшеъ озейбъ мдйеъ бйп 4 м 15 ъеййн"); ShowLoginDialog
GetPlayerName(playerid,Name,24);
format(BBFile, sizeof(BBFile), "BikiniBottom/Users/%s.ini",Name);
if(!strcmp(inputtext,dini_Get(BBFile,"Password"),true))
{
format(Str, sizeof(Str), "%s дъзбшъ мщшъ бдцмзд, бшек щебк",dini_Get(BBFile,"Nick"));
SendClientMessage(playerid,ColorLightGreen,Str);
//Online[playerid] == 1;
format(Str, sizeof(Str), "! дщзчп дсчсй щмре дъзбш мщшъ %s",dini_Get(BBFile,"Nick"));
SendClientMessageToAll(ColorLightGreen,Str);
}
else if (strcmp(inputtext,dini_Get(BBFile,"Password"),true))
{
SendClientMessage(playerid,ColorRed,"сйсоа щвейд, рсд щрйъ"); ShowLoginDialog
}
}
}
PHP код:
#define ShowRegisterDialog ShowPlayerDialog(playerid,RegisterDialog,DIALOG_STYLE_INPUT," дшщод мбйчйрй беиен",".бшек дба мбйчйрй беиен, айрк шщен ботшлъ\n\r :ара длрс сйсоа майоеъ ддшщод","дшщн","бйием");
#define ShowLoginDialog ShowPlayerDialog(playerid,LoginDialog,DIALOG_STYLE_INPUT," дъзбшеъ мбйчйрй беиен",".бшек дба мбйчйрй беиен, ара дъзбш мщшъ\n\r :ара длрс сйсоа майоеъ ддъзбшеъ","дъзбш","бйием");
#define RegisterDialog 600
#define LoginDialog 601
thanks for help