Wird ja auch habe hier:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == registrieren)
{
if(!response)
{
SendClientMessage(playerid,COLOR_RED,"Registrierung abgebrochen. Wenn du dich doch registrieren willst,");
SendClientMessage(playerid,COLOR_RED,"verwende /register");
return 1;
}
new name[MAX_PLAYER_NAME];
new save[128];
GetPlayerName(playerid,name,sizeof(name));
format(save,sizeof(save),"/Spieler/%s.ini",name);
if(!dini_Exists(save))
{
dini_Create(save); //Hier wird ja die dini erstellt oder?
dini_IntSet(save,"passwort",udb_hash(inputtext));
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_GREEN, "*** Erfolgreich registriert! ***");
SendClientMessage(playerid, COLOR_GREEN, "*** Du wurdest automatisch eingeloggt. ***");
loggedin[playerid] = true;
login(playerid);
}
return 1;
}
else if(dialogid == einloggen)
{
if(!response)
{
SendClientMessage(playerid,COLOR_RED,"Einloggen abgebrochen. Wenn du dich doch einloggen willst,");
SendClientMessage(playerid,COLOR_RED,"verwende /login");
return 1;
}
new name[128];
new save[128];
new s2[256];
GetPlayerName(playerid,name,sizeof(name));
format(save,sizeof(save),"/Spieler/%s.ini",name);
if(dini_Exists(save))
{
s2=dini_Get(save,"passwort");
if(strval(s2)==udb_hash(inputtext))
{
loggedin[playerid] = true;
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_GREEN,"*** Erfolgreich eingeloggt. ***");
login(playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Falsches Passwort!");
return 1;
}
}
return 1;
}