Hallo Leute,
weiß jemand wieso mein eigener Befehl nicht geht:
ocmd:showfinances(playerid,params[])
{
new pID;
if(sscanf(params,"u", pID))return SendClientMessage(playerid, MEINS, "Benutze: /showfinances [SpielerID/Name]");
new string[128];
new string2[128];
new string3[128];
new string4[128];
new string5[128];
new string6[128];
new string7[128];
new string8[128];
new string9[128];
new string10[128];
new string11[128];
new string12[128];
new rest[1500];
new rest1[1500];
new rest2[1500];
new rest3[1500];
new fraktname[64];
new fraktnamee[64];
new g[64];
new j[64];
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktnamee=" - ";}
case 1:{fraktnamee=fraktname1;}
case 2:{fraktnamee=fraktname2;}
case 3:{fraktnamee=fraktname3;}
case 4:{fraktnamee=fraktname4;}
case 5:{fraktnamee=fraktname5;}
case 6:{fraktnamee=fraktname6;}
case 7:{fraktnamee=fraktname7;}
case 8:{fraktnamee=fraktname8;}
case 9:{fraktnamee=fraktname9;}
case 10:{fraktnamee=fraktname10;}
case 11:{fraktnamee=fraktname11;}
case 12:{fraktnamee=fraktname12;}
case 13:{fraktnamee=fraktname13;}
case 14:{fraktnamee=fraktname14;}
case 15:{fraktnamee=" - ";}
}
switch(GetPVarInt(playerid,"Geschlecht"))
{
case 0:{g=g1;}
case 1:{g=g2;}
}
switch(GetPVarInt(playerid,"Job"))
{
case 0:{j="Arbeitsloser";}
case 1:{j=j1;}
case 2:{j=j2;}
case 3:{j=j3;}
case 4:{j=j4;}
case 5:{j=j5;}
case 6:{j=j6;}
case 7:{j=j7;}
case 8:{j=j8;}
case 9:{j=j9;}
case 10:{j=j10;}
}
switch(GetPVarInt(playerid,"Leader"))
{
case 0:{fraktname=" - ";}
case 1:{fraktname=fraktname1;}
case 2:{fraktname=fraktname2;}
case 3:{fraktname=fraktname3;}
case 4:{fraktname=fraktname4;}
case 5:{fraktname=fraktname5;}
case 6:{fraktname=fraktname6;}
case 7:{fraktname=fraktname7;}
case 8:{fraktname=fraktname8;}
case 9:{fraktname=fraktname9;}
case 10:{fraktname=fraktname10;}
case 11:{fraktname=fraktname11;}
case 12:{fraktname=fraktname12;}
case 13:{fraktname=fraktname13;}
case 14:{fraktname=fraktname14;}
}
//Reihe 1
format(string,sizeof(string),"Name: %s ",SpielerName(playerid));
format(string2,sizeof(string2),"Level: %i",GetPlayerScore(playerid));
format(string12,sizeof(string12),"Geld: %i",GetPlayerMoney(playerid));
format(rest, sizeof rest, "%s %s %s", string,string2,string12);
SendClientMessage(pID,ORANGE,rest);
//Reihe 2
format(string3,sizeof(string3),"Adminlevel: %i ",GetPVarInt(playerid,"Adminlevel"));
format(string4,sizeof(string4),"Member: %s ",fraktnamee);
format(string10,sizeof(string10),"Leader: %s ",fraktname);
format(rest1, sizeof rest1, "%s %s %s", string3,string4,string10);
SendClientMessage(pID,ORANGE,rest1);
//Reihe 3
format(string5,sizeof(string5),"Geschlecht: %s ",g);
format(string6,sizeof(string6)," ");
format(string7,sizeof(string7),"Job: %s ",j);
format(rest2, sizeof rest2, "%s %s %s", string5,string6,string7);
SendClientMessage(pID,ORANGE,rest2);
//Reihe 4
format(string8,sizeof(string8),"Payday: %i ",GetPVarInt(playerid,"PayDay"));
format(string9,sizeof(string9),"Respektpunkte: %i ",GetPVarInt(playerid,"Monate"));
format(string11,sizeof(string11),"Busskillpunkte: %i ",GetPVarInt(playerid,"Busskill"));
format(rest3, sizeof rest3, "%s %s %s", string8,string9,string11);
SendClientMessage(pID,ORANGE,rest3);
return 1;
}
Also immer wenn ich zb /showfinances 0 mache sendet er Unknown Command aber wenn ich nur /showfinances mache zeigt er mir /showfinances [ID/SpielerName]
Kann jemand helfen?
MfG Larso99