Moin, Ich habe ein paar probleme bei den /stats dialog
hier der code;
if (strcmp("/statistic", cmdtext, true) ==0)
{
if(IsPlayerConnected(playerid))
{
Statistic(playerid,playerid);
}
return 1;
//Edit: Meldungen vergessen:
[pwn]C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1110) : warning 202: number of arguments does not match definition
C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1110) : warning 202: number of arguments does not match definition
C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1110) : warning 202: number of arguments does not match definition
C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1110) : warning 202: number of arguments does not match definition
C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1108) : warning 204: symbol is assigned a value that is never used: "adminlevel"
C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1107) : warning 204: symbol is assigned a value that is never used: "drugs"
C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1106) : warning 204: symbol is assigned a value that is never used: "level"
C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1105) : warning 204: symbol is assigned a value that is never used: "ep"
C:\DESKTOP\Müll\Sperrmüll\thehunter\gamemodes\TheHunter.pwn(1104) : warning 204: symbol is assigned a value that is never used: "cash"
}[/pwn]
forward Statistic(playerid,targetid);
public Statistic(playerid,targetid)
{
new cash = Spieler[targetid][pCash];
new ep = Spieler[targetid][pExperiencepoints];
new level = Spieler[targetid][pLevel];
new drugs = Spieler[targetid][pJoints];
new adminlevel = Spieler[targetid][pAdmin];
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_LIST, "Statistic", "Level: %d \nErfahrungspunkte: %s \nAdminlevel: %d \nZigaretten %d ", "Auswählen", "Abbrechen", level, ep, adminlevel, drugs);
return 1;
}