PHP код:
GetPlayerName(playerid,playername,sizeof(playername));
Line 239 : format(pfile,sizeof(pfile),"Users/%s.ini",playername);
if(dini_Exists(pfile)){
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Register","Type your password here:","Register","Cancel");
}
else (ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login","Type your password here:","Login","Cancel");)
}
if(dialogid == 2){
if(response){
if(20 < strlen(inputtext) || strlen(inputtext) < 5){
SendClientMessage(playerid,0xAA3333AA,"Short password, has to be upto 5-20 characters !");
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login","Type your password here :","Login","Cancel");}
else {
if(!strcmp(inputtext,dini_Get(pfile,"Password"),true)) {
dini_Get(pfile,"BlaBla");
dini_Get(pfile,"BlaBla1");
dini_Get(pfile,"BlaBla2");
dini_Get(pfile,"BlaBla3");
dini_Get(pfile,"BlaBla4");
dini_Get(pfile,"BlaBla5");
dini_Get(pfile,"BlaBla6");
dini_Get(pfile,"BlaBla7");
dini_Get(pfile,"BlaBla8l");
dini_Get(pfile,"BlaBla9");
GetPlayerName(playerid, playername, sizeof(playername));
else {
SendClientMessage(playerid, 0xAA3333AA, "Wrong password !");
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login","Type your password here :","Login","Cancel");}
}
}
else {
Kick(playerid);
}
return 1;
}