Jeffry:
Danke das hat geklappt, nun wenn ich drauf klicke komme ich allerdings wieder in die registration
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == tRegister[1][playerid])return ShowPlayerDialog(playerid, DIALOG_RName, DIALOG_STYLE_INPUT, #DIALOG_Start"Registrierung [Benutzername]","Gebe deinen gewünschten Benutzernamen ein:","Weiter","Abbrechen");
else if(playertextid == tRegister[2][playerid])return ShowPlayerDialog(playerid, DIALOG_RPass, DIALOG_STYLE_PASSWORD, #DIALOG_Start"Registrierung [Passwort]","Gebe deinen gewünschtes Passwort ein:","Weiter","Abbrechen");
else if(playertextid == tRegister[3][playerid])return ShowPlayerDialog(playerid, DIALOG_REMail, DIALOG_STYLE_INPUT, #DIALOG_Start"Registrierung [E-Mail Adresse]","Gebe deinen E-mail Adresse ein:","Weiter","Abbrechen");
else if(playertextid == tRegister[4][playerid])return ShowPlayerDialog(playerid, DIALOG_RGeschlecht, DIALOG_STYLE_LIST, #DIALOG_Start"Registrierung [Geschlecht]","Männlich\nWeiblich","Weiter","Abbrechen");
else if(playertextid == tRegister[5][playerid])return ShowPlayerDialog(playerid, DIALOG_RAlter, DIALOG_STYLE_INPUT, #DIALOG_Start"Registrierung [Alter]","Gebe dein Geburtsdatum ein:","Weiter","Abbrechen");
else if(playertextid == tRegister[6][playerid])
{
if(RLFill[2][playerid] != 1)return SendClientMessage(playerid,ROT,"Du musst deinen gewünschten Benutzernamen eintragen.");
else if(RLFill[3][playerid] != 1)return SendClientMessage(playerid,ROT,"Du musst dein gewünschtes Passwort eintragen.");
else if(RLFill[4][playerid] != 1)return SendClientMessage(playerid,ROT,"Du musst deine E-Mail Adresse eintragen.");
else if(RLFill[5][playerid] != 1)return SendClientMessage(playerid,ROT,"Du musst dein Geschlecht auswählen.");
else if(RLFill[6][playerid] != 1)return SendClientMessage(playerid,ROT,"Du musst dein Alter angeben.");
else return LoginOrRegister(playerid);
}
else if(playertextid == tLogin[1][playerid])return ShowPlayerDialog(playerid, DIALOG_LName, DIALOG_STYLE_INPUT, #DIALOG_Start"Login [Benutzername]","Gebe deinen Benutzernamen ein:","Weiter","Abbrechen");
else if(playertextid == tLogin[2][playerid])return ShowPlayerDialog(playerid, DIALOG_LPass, DIALOG_STYLE_INPUT, #DIALOG_Start"Login [Passwort]","Gebe dein Passwort ein:","Weiter","Abbrechen");
else if(playertextid == tLogin[3][playerid])
{
if(RLFill[0][playerid] != 1)return SendClientMessage(playerid,ROT,"Du musst deinen Benutzernamen eintragen.");
if(RLFill[1][playerid] != 1)return SendClientMessage(playerid,ROT,"Du musst dein Passwort eintragen.");
new query[80 + MAX_PLAYER_NAME];
mysql_format(mycon, query, sizeof(query), "SELECT COUNT(*) AS `count` FROM `"#SERVERTAG"_Account` WHERE `Name` = '%e' AND `Passwort` = '%e'",PlayerInfo[playerid][pName],PlayerInfo[playerid][pPass]);
mysql_function_query(mycon, query, true, "LoadPlayerDataSequence","dd",playerid,2);
LoginVersuche[playerid] ++;
return 1;
}
else if(playertextid == STATSdraw[playerid][1]) //Stats
{
new Geschlecht[10];
switch(PlayerInfo[playerid][pGeschlecht])
{
case 0: Geschlecht = "Männlich";
case 1: Geschlecht = "Weiblich";
default: Geschlecht = "ERROR";
}
new Profil[256], Account[256], Sonstiges[256];
format(Profil,sizeof(Profil),"~r~Account ~w~~n~Name: %s~n~Level: %d~n~Geld: %d~n~Geschlecht: %s~n~Registiert: %s~n~Adminstatus: %s",
PlayerInfo[playerid][pName],
PlayerInfo[playerid][pLevel],
PlayerInfo[playerid][pGeld],
Geschlecht,
PlayerInfo[playerid][pRegDatum],
Adminrang(playerid));
PlayerTextDrawSetString(playerid,STATSdraw[playerid][6],Profil);
format(Account,sizeof(Account),"~r~Account ~w~~n~Nextlevel: %i/"#FORNEXTLEVEL" Kills ~n~Verwarnungen: %i/3 ~n~Mute: %i:%02d Minuten ~n~Spawn: %i ~n~Skin: %i",
PlayerInfo[playerid][pNextLevel],
PlayerInfo[playerid][pWarns],
floatround(PlayerInfo[playerid][pMuteTime]/60),floatround(PlayerInfo[playerid][pMuteTime]%60),
PlayerInfo[playerid][pSpawns],
PlayerInfo[playerid][pSkin]);
PlayerTextDrawSetString(playerid,STATSdraw[playerid][7],Account);
new Float:KD = PlayerInfo[playerid][pKills]/PlayerInfo[playerid][pTode];
printf("Sonstiges: %s KD: %f",Sonstiges,KD);
format(Sonstiges,sizeof(Sonstiges),"~r~Sonstiges ~w~~n~Clan: %s ~n~Kills: %i ~n~Tode: %i ~n~K/D: %f ~n~Killstreaks: %i ~n~Bester Killstreak: %i",
PlayerInfo[playerid][pClan],
PlayerInfo[playerid][pKills],
PlayerInfo[playerid][pTode],
KD,
PlayerInfo[playerid][pKillstreak][0],
PlayerInfo[playerid][pKillstreak][1]);
printf("Sonstiges: %s",Sonstiges);
PlayerTextDrawSetString(playerid,STATSdraw[playerid][8],Sonstiges);
return 1;
}
else if(playertextid == STATSdraw[playerid][2]) //Skills
{
new Skills[256];
format(Skills,sizeof(Skills),"~r~Skill 1");
PlayerTextDrawSetString(playerid,STATSdraw[playerid][6],Skills);
format(Skills,sizeof(Skills),"~r~Skill 2");
PlayerTextDrawSetString(playerid,STATSdraw[playerid][7],Skills);
format(Skills,sizeof(Skills),"~r~Skill 3");
PlayerTextDrawSetString(playerid,STATSdraw[playerid][8],Skills);
return 1;
}
else if(playertextid == STATSdraw[playerid][3]) //Config
{
return 1;
}
return 1;
}
Dabei müsste ja eigentlich dieser Teil aufgerufen werden
else if(playertextid == STATSdraw[playerid][2]) //Skills
{
new Skills[256];
format(Skills,sizeof(Skills),"~r~Skill 1");
PlayerTextDrawSetString(playerid,STATSdraw[playerid][6],Skills);
format(Skills,sizeof(Skills),"~r~Skill 2");
PlayerTextDrawSetString(playerid,STATSdraw[playerid][7],Skills);
format(Skills,sizeof(Skills),"~r~Skill 3");
PlayerTextDrawSetString(playerid,STATSdraw[playerid][8],Skills);
return 1;
}