Hallo ,
Ich habe ein Problem , undzwar , wenn ich InGame /stats mache , kommt nichts ...
Was ist der Fehler?
ocmd:stats(playerid,params[])
{
new wanteds = GetPVarInt(playerid,"Wanteds");
new statsgeschlecht[84];
new statsfraktname[84];
new statsnebenjob[84];
new statspremium[84];
new stats[1500];
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{statsfraktname="Zivilist";}
case 1:{statsfraktname="LSPD";}
case 2:{statsfraktname="Fahrschule";}
case 3:{statsfraktname="Adac";}
case 4:{statsfraktname="Zivilist";}
case 5:{statsfraktname="San Andreas News Time";}
case 6:{statsfraktname="Rettungsdienst";}
case 7:{statsfraktname="Army";}
case 8:{statsfraktname="Bürgermeister";}
case 9:{statsfraktname="La Cosa Nostra";}
case 10:{statsfraktname="Rifa";}
case 11:{statsfraktname="Grove Street";}
case 12:{statsfraktname="Yakuza";}
case 13:{statsfraktname="Hitman";}
}
switch(GetPVarInt(playerid,"Geschlecht"))
{
case 0:{statsgeschlecht="-";}
case 1:{statsgeschlecht="Männlich";}
case 2:{statsgeschlecht="Weiblich";}
}
switch(GetPVarInt(playerid,"Nebenjob"))
{
case 0:{statsnebenjob="Keinen";}
case 1:{statsnebenjob="Dj";}
case 2:{statsnebenjob="Fischer";}
case 3:{statsnebenjob="Müllmann";}
case 4:{statsnebenjob="Fensterputzer";}
case 5:{statsnebenjob="Pilot";}
case 6:{statsnebenjob="Taxifahrer";}
case 7:{statsnebenjob="Straßenreiniger";}
}
switch(GetPVarInt(playerid,"Premium"))
{
case 0:{statspremium="-";}
case 1:{statspremium="Rang 1";}
case 2:{statspremium="Rang 2";}
}
format(stats,sizeof(stats),"[ALLGEMEINES]\n\nName: %s Alter: %i Geschlecht: %s\nLevel: %i\n\n[VERMÖGEN]\n\nGeld: %i Kontostand: %i\n\n[ARBEIT]\n\nFraktion: %s Fraktionsrang: %i Nebenjob: %s\n\n[SONSTIGES]\n\nPayday: %i/60 Respektpunkte: %i/%i Wanteds: %d Premium: %d AdminLevel: %d Verwarnungen: %i/3\n\n[KD RATING]\n\nKills: %i Tode: %i KD Rate: %d",SpielerName(playerid),GetPVarInt(playerid,"Alter"),statsgeschlecht,GetPlayerScore(playerid),
GetPlayerMoney(playerid),GetPVarInt(playerid,"Kontostand"),statsfraktname,GetPVarInt(playerid,"FrakRang"),statsnebenjob,GetPVarInt(playerid,"PayDay"),GetPVarInt(playerid,"Respektpunkte"),GetPVarInt(playerid,"Respektpunkte2"),wanteds,GetPVarInt(playerid,"Premium"),GetPVarInt(playerid,"Adminlevel"),GetPVarInt(playerid,"Warn"),GetPVarInt(playerid,"Kills"),GetPVarInt(playerid,"Tode"),GetPVarInt(playerid,"Kills") / GetPVarInt(playerid,"Tode"));
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,".:[iSAMP] - Statistik:.:",stats,"Schliessen","");
return 1;
}
Danke im vorraus
+ neues Problem.