Hallo,
Ich habe eine Problem wenn ich im Game /stats eingeben kommt Coomand Unknow in mein Script ist
es so geschriebn
der Befehl
if (strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
Stats(playerid,playerid);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht eingeloggt !");
}
}
return 1;
}
und das
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectTime];
new lotto = PlayerInfo[targetid][pLottoNr];
new deaths = PlayerInfo[targetid][pDeaths];
new fishes = PlayerInfo[targetid][pFishes];
new bigfish = PlayerInfo[targetid][pBiggestFish];
new crimes = PlayerInfo[targetid][pCrimes];
new arrests = PlayerInfo[targetid][pArrested];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new boxdrugs = PlayerInfo[targetid][pBoxDrugs];
new boxmats = PlayerInfo[targetid][pBoxMats];
new wanted = WantedLevel[targetid];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new kills = PlayerInfo[targetid][pKills];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new costlevel = nxtlevel*levelcost;//10k for testing purposes
new housekey = PlayerInfo[targetid][pPhousekey];
new bizkey = PlayerInfo[targetid][pPbiskey];
new intir = PlayerInfo[targetid][pInt];
new local = PlayerInfo[targetid][pLocal];
new Float:shealth = PlayerInfo[targetid][pSHealth];
new Float:health;
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Float:px,Float:py,Float:pz;
new Float:plHealth, Float:plArmour;
GetPlayerPos(targetid, px, py, pz);
new plIP[20];
GetPlayerHealth(targetid,plHealth);
GetPlayerArmour(targetid,plArmour);
GetPlayerIp(playerid,plIP,sizeof(plIP));
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],rest[1500];
format(string1, sizeof string1, "{0000FF}[Stats von %s auf German Hot Reallife]{FFFFFF}", name);
format(string2, sizeof string2, "[Allgemeines]");
format(string3, sizeof string3, "Level [%d] Geschlecht [%s] Alter [%d] Herkunft [%s] Spawnenergie [%.1f] Verheiretet mit [%s] Telefonnummer [%d]", level,atext,age,otext,shealth+50.0,married,pnumber);
format(string4, sizeof string4, "Größter Fisch [%d] Verbrechen [%d] Gefängniszeiten [%d] Kosten für nächstes Level [%d$] Spielminuten seit Login / insgesammt [%d / %d]", bigfish,crimes,arrests,costlevel,PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
format(string5, sizeof string5, "Kreditraten verbleibend / Summe [%d / %d] Spielminuten bis Payday [%d]", PlayerInfo[targetid][pPlayerKreditDauer], PlayerInfo[targetid][pPlayerKredit], 60-PlayerInfo[targetid][pPlayMinutes]);
format(string6, sizeof string6, "[Besitztum]");
format(string7, sizeof string7, "Premium Rang [%s] Spielzeit [%d] Lottonummer [%d] Wantedlevel [%d] Krankheit [%s] Gefangene Fische [%d] Kills & Deaths [%d / %d]", drank,ptime,lotto,wanted,dtext,fishes,kills,deaths);
format(string8, sizeof string8, "Bargeld [%d$] Bankkonto [%d$] Drogen [%d] Materialien [%d] Box Materialien [%d] Box Drogen [%d] Respektpunkte [%d / %d]", cash,account,drugs,mats,boxmats,boxdrugs,exp,expamount);
format(string9, sizeof string9, "[Fraktion und Job]");
format(string10, sizeof string10, "Team [%s] Organisation [%s] Rang [%s] Familie [%s] Job [%s] Gehalt/Payday: [%d$] Fraktionsmaterialien: [%d]", ttext,ftext,rtext,f2text,jtext,PlayerInfo[targetid][pGehalt], FrakMatsHolding[targetid]);
format(string11, sizeof string11, "[Zusatzinfos]");
format(string12, sizeof string12, "Hausschlüssel [%d] Geschäftsschlüssel [%d] Interior [%d] Gebäude [%d]", housekey,bizkey,intir,local);
format(string13, sizeof string13, "Zeit bis zum nächsten Flug [%d] (Job Pilot) Zeit bis zur nächsten Fahrt [%d] (Job Müllmann)", PlayerInfo[targetid][pFlugTime]/60, PlayerInfo[targetid][pMulltime]/60);
format(string14, sizeof string14, "Lebenspunkte [%.2f] Schutzweste [%.2f] IP [%s] Ping [%d] Verwarnungen [%d]", plHealth,plArmour,plIP,GetPlayerPing(targetid),PlayerInfo[targetid][pWarns]);
format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14);
ShowPlayerDialog(playerid,30,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Beenden","");
}
}
komm mir jmd helfen wäre cool