HeyHoo,
Ich habe einen kleinen Statsbefehl gebastelt, aber es klappt nichts, habs mit printen versucht, er kommt immernur bis Breakpoint 1
Hier der Code:
ocmd:stats(playerid,params[])
{
if(!isPlayerAFK(playerid))
{
print("BREAKPOINT1!");
new Gender[32],Job[32]/*,Fraktion[32]*/;
new Level = GetPlayerScore(playerid);
new Moneyy = SpielerInfo[playerid][pGeld];
new Konto = SpielerInfo[playerid][pKonto];
new Respekt = SpielerInfo[playerid][pRespekt];
new Handynummer = SpielerInfo[playerid][pHandyNummer];
new Age = SpielerInfo[playerid][pAlter];
new Frakrank = SpielerInfo[playerid][pFrakrank];
switch(SpielerInfo[playerid][pGeschlecht])
{
case 1: format(Gender,sizeof(Gender),"Männlich");
case 2: format(Gender,sizeof(Gender),"Weiblich");
}
switch(SpielerInfo[playerid][pJob])
{
case 0: format(Job,sizeof(Job),"Arbeitslos");
case 1: format(Job,sizeof(Job),"Detektiv");
case 2: format(Job,sizeof(Job),"Anwalt");
case 3: format(Job,sizeof(Job),"Hure");
case 4: format(Job,sizeof(Job),"Automechaniker");
case 5: format(Job,sizeof(Job),"Strassenreiniger");
}
if(isPlayerAnAdmin(playerid,1))
{
new Admlvl[64];
new Admin = SpielerInfo[playerid][pAdmin];
new Mute = SpielerInfo[playerid][pMute];
new Warns = SpielerInfo[playerid][pWarns];
new Kicks = SpielerInfo[playerid][pKicks];
new Bans = SpielerInfo[playerid][pBans];
new Supportpunkte = SpielerInfo[playerid][pSupportpunkte];
if(SpielerInfo[playerid][pAdmin]==1){format(Admlvl,sizeof(Admlvl),"Supporter");}
else if(SpielerInfo[playerid][pAdmin]==2){format(Admlvl,sizeof(Admlvl),"Moderator");}
else if(SpielerInfo[playerid][pAdmin]==3){format(Admlvl,sizeof(Admlvl),"Administrator");}
else if(SpielerInfo[playerid][pAdmin]==4){format(Admlvl,sizeof(Admlvl),"Lead-Admin");}
else if(SpielerInfo[playerid][pAdmin]==5){format(Admlvl,sizeof(Admlvl),"Serverinhaber");}
new ipadress[16];
GetPlayerIp(playerid, ipadress, sizeof(ipadress));
new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200],string16[200],string17[200],string18[200],string19[200],string20[200],string21[200],string22[200],string23[200]/*,string24[200],string25[200],string26[200],string27[200],string28[200],string29[200]*/,rest[2000];
format(string1, sizeof string1, "{00E500}======[Stats von %s %s auf Lifestyle Roleplay]======{FFFFFF}", Admlvl, PlayerName(playerid));
format(string2, sizeof string2, "{FF0000}** Allgemeines ------------------------{FFFFFF}");
format(string3, sizeof string3, "Level:\t\t %d", Level);
format(string4, sizeof string4, "Geld:\t\t %d", Moneyy);
format(string5, sizeof string5, "Kontostand:\t\t %d", Konto);
format(string6, sizeof string6, "Respektpunkte:\t\t %d", Respekt);
format(string7, sizeof string7, "Handynummer:\t %d", Handynummer);
format(string8, sizeof string8, "Geschlecht:\t\t %s", Gender);
format(string9, sizeof string9, "Alter:\t\t %d", Age);
format(string10, sizeof string10, "Job:\t\t\t %s", Job);
format(string11, sizeof string11, "{FF0000}** Fraktion ---------------------{FFFFFF}");
format(string12, sizeof string12, "Fraktion:\t\t None"/*, Fraktion*/);
format(string13, sizeof string13, "Rank:\t\t\t %d", Frakrank);
format(string14, sizeof string14, "Gehalt (pro Payday):\t 0€"/*,Gehalt*/);
format(string15, sizeof string15, "{FF0000}** Besitz -----------------------------{FFFFFF}");
format(string16, sizeof string16, "{EEB900}** Admineinsicht -----------------------------{FFFFFF}");
format(string17, sizeof string17, "Adminlevel:\t\t\t %d", Admin, Admlvl);
format(string18, sizeof string18, "Mutezeit:\t\t\t %d", Mute);
format(string19, sizeof string19, "Verwarnungen:\t\t\t %d", Warns);
format(string20, sizeof string20, "Kicks:\t\t\t %d", Kicks);
format(string21, sizeof string21, "Bans:\t\t\t %d", Bans);
format(string22, sizeof string22, "Supportpunkte:\t\t\t %d", Supportpunkte);
format(string23, sizeof string23, "IP-Adresse:\t\t\t %d", ipadress);
print("BREAKPOINT3!");
format(rest, sizeof rest, "%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string15,string16,string17,string18,string19,string20,string21,string22,string23/*,string24,string25,string26,string27*/);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Schliessen","");
}
else
{
new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200]/*,string16[200],string17[200],string18[200],string19[200],string20[200],string21[200],string22[200],string23[200],string24[200],string25[200],string26[200]*/,rest[2000];
format(string1, sizeof string1, "{00E500}======[Stats von %s auf Lifestyle Roleplay]======{FFFFFF}", PlayerName(playerid));
format(string2, sizeof string2, "{FF0000}** Allgemeines ------------------------{FFFFFF}");
format(string3, sizeof string3, "Level:\t\t %d", Level);
format(string4, sizeof string4, "Geld:\t\t %d", Moneyy);
format(string5, sizeof string5, "Kontostand:\t\t %d", Konto);
format(string6, sizeof string6, "Respektpunkte:\t\t %d", Respekt);
format(string7, sizeof string7, "Handynummer:\t %d", Handynummer);
format(string8, sizeof string8, "Geschlecht:\t\t %s", Gender);
format(string9, sizeof string9, "Alter:\t\t %d", Age);
format(string10, sizeof string10, "Job:\t\t\t %s", Job);
format(string11, sizeof string11, "{FF0000}** Fraktion ---------------------{FFFFFF}");
format(string12, sizeof string12, "Fraktion:\t\t None"/*, Fraktion*/);
format(string13, sizeof string13, "Rank:\t\t\t %d", Frakrank);
format(string14, sizeof string14, "Gehalt (pro Payday):\t 0€"/*,Gehalt*/);
format(string15, sizeof string15, "{FF0000}** Besitz -----------------------------{FFFFFF}");
print("BREAKPOINT2!");
format(rest, sizeof rest, "%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string15/*,string16,string17,string18,string19,string20,string21,string22,string23,string24,string25,string26*/);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Schliessen","");
}
}
else
{
SCM(playerid,AFK,"Du bist Abwesend gemeldet. Mit dem Befehl /back kannst du dich wieder Anwesend melden!");
}
return 1;
}
{
if(!isPlayerAFK(playerid))
{
print("BREAKPOINT1!");
new Gender[32],Job[32]/*,Fraktion[32]*/;
new Level = GetPlayerScore(playerid);
new Moneyy = SpielerInfo[playerid][pGeld];
new Konto = SpielerInfo[playerid][pKonto];
new Respekt = SpielerInfo[playerid][pRespekt];
new Handynummer = SpielerInfo[playerid][pHandyNummer];
new Age = SpielerInfo[playerid][pAlter];
new Frakrank = SpielerInfo[playerid][pFrakrank];
switch(SpielerInfo[playerid][pGeschlecht])
{
case 1: format(Gender,sizeof(Gender),"Männlich");
case 2: format(Gender,sizeof(Gender),"Weiblich");
}
switch(SpielerInfo[playerid][pJob])
{
case 0: format(Job,sizeof(Job),"Arbeitslos");
case 1: format(Job,sizeof(Job),"Detektiv");
case 2: format(Job,sizeof(Job),"Anwalt");
case 3: format(Job,sizeof(Job),"Hure");
case 4: format(Job,sizeof(Job),"Automechaniker");
case 5: format(Job,sizeof(Job),"Strassenreiniger");
}
if(isPlayerAnAdmin(playerid,1))
{
new Admlvl[64];
new Admin = SpielerInfo[playerid][pAdmin];
new Mute = SpielerInfo[playerid][pMute];
new Warns = SpielerInfo[playerid][pWarns];
new Kicks = SpielerInfo[playerid][pKicks];
new Bans = SpielerInfo[playerid][pBans];
new Supportpunkte = SpielerInfo[playerid][pSupportpunkte];
if(SpielerInfo[playerid][pAdmin]==1){format(Admlvl,sizeof(Admlvl),"Supporter");}
else if(SpielerInfo[playerid][pAdmin]==2){format(Admlvl,sizeof(Admlvl),"Moderator");}
else if(SpielerInfo[playerid][pAdmin]==3){format(Admlvl,sizeof(Admlvl),"Administrator");}
else if(SpielerInfo[playerid][pAdmin]==4){format(Admlvl,sizeof(Admlvl),"Lead-Admin");}
else if(SpielerInfo[playerid][pAdmin]==5){format(Admlvl,sizeof(Admlvl),"Serverinhaber");}
new ipadress[16];
GetPlayerIp(playerid, ipadress, sizeof(ipadress));
new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200],string16[200],string17[200],string18[200],string19[200],string20[200],string21[200],string22[200],string23[200]/*,string24[200],string25[200],string26[200],string27[200],string28[200],string29[200]*/,rest[2000];
format(string1, sizeof string1, "{00E500}======[Stats von %s %s auf Lifestyle Roleplay]======{FFFFFF}", Admlvl, PlayerName(playerid));
format(string2, sizeof string2, "{FF0000}** Allgemeines ------------------------{FFFFFF}");
format(string3, sizeof string3, "Level:\t\t %d", Level);
format(string4, sizeof string4, "Geld:\t\t %d", Moneyy);
format(string5, sizeof string5, "Kontostand:\t\t %d", Konto);
format(string6, sizeof string6, "Respektpunkte:\t\t %d", Respekt);
format(string7, sizeof string7, "Handynummer:\t %d", Handynummer);
format(string8, sizeof string8, "Geschlecht:\t\t %s", Gender);
format(string9, sizeof string9, "Alter:\t\t %d", Age);
format(string10, sizeof string10, "Job:\t\t\t %s", Job);
format(string11, sizeof string11, "{FF0000}** Fraktion ---------------------{FFFFFF}");
format(string12, sizeof string12, "Fraktion:\t\t None"/*, Fraktion*/);
format(string13, sizeof string13, "Rank:\t\t\t %d", Frakrank);
format(string14, sizeof string14, "Gehalt (pro Payday):\t 0€"/*,Gehalt*/);
format(string15, sizeof string15, "{FF0000}** Besitz -----------------------------{FFFFFF}");
format(string16, sizeof string16, "{EEB900}** Admineinsicht -----------------------------{FFFFFF}");
format(string17, sizeof string17, "Adminlevel:\t\t\t %d", Admin, Admlvl);
format(string18, sizeof string18, "Mutezeit:\t\t\t %d", Mute);
format(string19, sizeof string19, "Verwarnungen:\t\t\t %d", Warns);
format(string20, sizeof string20, "Kicks:\t\t\t %d", Kicks);
format(string21, sizeof string21, "Bans:\t\t\t %d", Bans);
format(string22, sizeof string22, "Supportpunkte:\t\t\t %d", Supportpunkte);
format(string23, sizeof string23, "IP-Adresse:\t\t\t %d", ipadress);
print("BREAKPOINT3!");
format(rest, sizeof rest, "%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string15,string16,string17,string18,string19,string20,string21,string22,string23/*,string24,string25,string26,string27*/);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Schliessen","");
}
else
{
new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200]/*,string16[200],string17[200],string18[200],string19[200],string20[200],string21[200],string22[200],string23[200],string24[200],string25[200],string26[200]*/,rest[2000];
format(string1, sizeof string1, "{00E500}======[Stats von %s auf Lifestyle Roleplay]======{FFFFFF}", PlayerName(playerid));
format(string2, sizeof string2, "{FF0000}** Allgemeines ------------------------{FFFFFF}");
format(string3, sizeof string3, "Level:\t\t %d", Level);
format(string4, sizeof string4, "Geld:\t\t %d", Moneyy);
format(string5, sizeof string5, "Kontostand:\t\t %d", Konto);
format(string6, sizeof string6, "Respektpunkte:\t\t %d", Respekt);
format(string7, sizeof string7, "Handynummer:\t %d", Handynummer);
format(string8, sizeof string8, "Geschlecht:\t\t %s", Gender);
format(string9, sizeof string9, "Alter:\t\t %d", Age);
format(string10, sizeof string10, "Job:\t\t\t %s", Job);
format(string11, sizeof string11, "{FF0000}** Fraktion ---------------------{FFFFFF}");
format(string12, sizeof string12, "Fraktion:\t\t None"/*, Fraktion*/);
format(string13, sizeof string13, "Rank:\t\t\t %d", Frakrank);
format(string14, sizeof string14, "Gehalt (pro Payday):\t 0€"/*,Gehalt*/);
format(string15, sizeof string15, "{FF0000}** Besitz -----------------------------{FFFFFF}");
print("BREAKPOINT2!");
format(rest, sizeof rest, "%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string15/*,string16,string17,string18,string19,string20,string21,string22,string23,string24,string25,string26*/);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Schliessen","");
}
}
else
{
SCM(playerid,AFK,"Du bist Abwesend gemeldet. Mit dem Befehl /back kannst du dich wieder Anwesend melden!");
}
return 1;
}
Server-Log:
Code
[23:29:40] [23:29:40] Filterscripts[23:29:40] ---------------[23:29:40] Loading filterscript 'DT_DynamicCar.amx'...[23:29:40] [23:29:40] -------- www.dark-trigardon.eu --------[23:29:40] [FS]DT_DynamicCar by [DT]Sniper[23:29:40] V.: 1.3.6[23:29:40] ---------------------------------------[23:29:40] Loading filterscript 'Spawns.amx'...[23:29:40] [23:29:40] Spawns wurden erfolgreich geladen![23:29:40] [23:29:40] Loaded 2 filterscripts.[23:29:40] <-| [MYSQL] Verbindung zur Datenbank wurde erfolgreich hergestellt![23:29:40] [23:29:40] SAMP - Testroleplay v0.3[23:29:40] [23:29:40] Number of vehicle models: 0[23:30:05] Incoming connection:11.111.111.11:11111[23:30:06] [join] Zinne has joined the server (0:11.111.111.11)[23:30:13] BREAKPOINT1!