Hallo zusammen,
ich habe gestern bzw unser Hauptscripter (ich bin 2. Scripter) hat unseren GS mit dem Forum verbunden
Nun möchten wir die bei der Registrierung angegebene Email Adresse auch in den Stats sichtbar machen
Die Email adresse ist in der DB gespeichert
Hier ist mal ein Auszug meines Stats befehls.
ocmd:stats(playerid,params[])
{
//new fID;
//fID = sInfo[playerid][fraktion];
if(!IsPlayerConnected(playerid)) return 1;
sInfo[playerid][e_mail] = cache_get_field_name(0,"email",dbhandle);
//new Frak = fInfo[fID][f_name];
new name[MAX_PLAYER_NAME];
new namee = GetPlayerName(playerid,name,sizeof(name));
new Adminlevel = sInfo [ playerid ][alevel];
new Spawnchange = sInfo [ playerid ][spawnchange];
new PayDay = sInfo [playerid][Payday];
new PayDayTime = sInfo [ playerid ][PaydayTime];
new rank =sInfo[playerid][rang];
new levels = sInfo[playerid][level];
new roller = sInfo[playerid][rollerschein];
new auto = sInfo[playerid][autoschein];
new richtiges_Alter = sInfo[playerid][age];
new email = sInfo[playerid][e_mail];
new string[512];
format(string,sizeof(string),"SpielerName: %s \n\nAdminlevel: %i \n\nSpawnchange : %i \n\nPaydays: %i \n\nPayDayTime: %i \n\nRang: %i\nAktuelle Email Adresse: %s \n\nLevel: %i \nRichtiges Alter: %i \n\nRollerschein: %u \n\n Autoschein: %u",namee, Adminlevel , Spawnchange , PayDay , PayDayTime,rank,email,levels,richtiges_Alter,roller,auto);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"STATS",string,"Ende","");
{
//new fID;
//fID = sInfo[playerid][fraktion];
if(!IsPlayerConnected(playerid)) return 1;
sInfo[playerid][e_mail] = cache_get_field_name(0,"email",dbhandle);
//new Frak = fInfo[fID][f_name];
new name[MAX_PLAYER_NAME];
new namee = GetPlayerName(playerid,name,sizeof(name));
new Adminlevel = sInfo [ playerid ][alevel];
new Spawnchange = sInfo [ playerid ][spawnchange];
new PayDay = sInfo [playerid][Payday];
new PayDayTime = sInfo [ playerid ][PaydayTime];
new rank =sInfo[playerid][rang];
new levels = sInfo[playerid][level];
new roller = sInfo[playerid][rollerschein];
new auto = sInfo[playerid][autoschein];
new richtiges_Alter = sInfo[playerid][age];
new email = sInfo[playerid][e_mail];
new string[512];
format(string,sizeof(string),"SpielerName: %s \n\nAdminlevel: %i \n\nSpawnchange : %i \n\nPaydays: %i \n\nPayDayTime: %i \n\nRang: %i\nAktuelle Email Adresse: %s \n\nLevel: %i \nRichtiges Alter: %i \n\nRollerschein: %u \n\n Autoschein: %u",namee, Adminlevel , Spawnchange , PayDay , PayDayTime,rank,email,levels,richtiges_Alter,roller,auto);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"STATS",string,"Ende","");
return 1;
}
}