ich kann mich nicht einloggen ich muss immer einen neuen account machen
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid, calssid)
{
if(playertextid==Textdraw0[playerid])// Also wenn playertextid TextDraw0 ist dann ....
{
new plname[MAX_PLAYER_NAME];
new string[64];
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "/Accounts/%s.ini", plname);
new namestr[100], spname[MAX_PLAYER_NAME];
GetPlayerName(playerid, spname, sizeof(spname));
format(namestr, sizeof(namestr), "Spieler ~r~~h~~h~%s~w~,", spname);
TextDrawSetString(TdSpielerName, namestr);
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Willkommen auf German-Golden-Reallife [GGR]~,\n\n\n\n Bitte Logge dich nun ein!\n\n\n","Login","Abbrechen");
TextDrawHideForPlayer(playerid,Textdraw2);
TextDrawHideForPlayer(playerid,Textdraw1);
PlayerTextDrawDestroy(playerid,Textdraw0[playerid]);
}
else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
{
ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account","Herzlich Willkommen auf German-Golden-Reallife [GGR]~,\n\n\nWir Freuen uns das du zu uns gejoint bist.\n\n\nDamit du gleich Loslegen kannst,\n\nmusst du dich Registrieren.\n\nViel Spaß.","Erstellen","Abbrechen");
TextDrawHideForPlayer(playerid,Textdraw2);
TextDrawHideForPlayer(playerid,Textdraw1);
PlayerTextDrawDestroy(playerid,Textdraw0[playerid]);
}
//return 1;
}
return 1;
}