17.03.2011, 15:28
i made a /stats dialog and i have a problem.. when i write /stats i get "SERVER: Unknown command."
where is the problem ?
Code:
new string3[256],string4[256],string5[256],string6[256],string7[256],string8[256],statsstring[2256]; format(string3, sizeof string3, "Level:[%d] Sex:[%s] Age:[%d] Spawn:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] PhoneNumber:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber); format(string4, sizeof string4, "DonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]", drank,married,ptime,lotto,jtext); format(string5, sizeof string5, "FishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests); format(string6, sizeof string6, "Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text); format(string7, sizeof string7, "Drugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s] Rob:[%d/15]",drugs,mats,ttext,dtext,ftext,rtext,robstat); format(string8, sizeof string8, "Warns:[%d] AdminLevel:[%d] HelperLevel: [%d] Crack:[%d]",warns,adminl,helperl,crack); format(statsstring, sizeof statsstring, "%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",string3,string4,string5,string6,string7,string8,string8); ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 0, "Stats",statsstring,"Iesi", "");