Opis problema : Pravio sam stats i sve ljepo uradim ali string moram da stavim minimum 1524 jer mi nece pokazivati dio stats-a
ali kad stavim toliki string u igri nece da mi prikaze stats samo mi posalje poruku "SERVER:Server unknow command"
Dio skripte:
Evo vam public stats-a
public ShowStats(playerid,targetid)
{
new string;
new Respekti = PlayerInfo;
new Level = PlayerInfo;
new coordsstring1;
new coordsstring2;
new coordsstring3;
new coordsstring4;
new LevelRespekti = levelexp*Level;
new Novac = PlayerInfo;
new Banka = PlayerInfo;
new Admin = PlayerInfo;
new Helper = PlayerInfo;
new Vip = PlayerInfo;
new ZlatoGR = PlayerInfo;
new DrogaGR = PlayerInfo;
new Name;
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
new Godine;
if(PlayerInfo == 11) { Godine = "11"; }
else if(PlayerInfo == 12) { Godine = "12"; }
else if(PlayerInfo == 13) { Godine = "13"; }
else if(PlayerInfo == 14) { Godine = "14"; }
else if(PlayerInfo == 15) { Godine = "15"; }
else if(PlayerInfo == 16) { Godine = "16"; }
else if(PlayerInfo == 17) { Godine = "17"; }
else if(PlayerInfo == 18) { Godine = "18"; }
else if(PlayerInfo == 19) { Godine = "18+"; }
new Telefon;
if(PlayerInfo == 0) { Telefon = "Nema"; }
else if(PlayerInfo == 1) { Telefon = "HTC One"; }
else if(PlayerInfo == 2) { Telefon = "HTC One X"; }
else if(PlayerInfo == 3) { Telefon = "HTC Desire X"; }
else if(PlayerInfo == 4) { Telefon = "Samsung Galaxy s4"; }
else if(PlayerInfo == 5) { Telefon = "Samsung Galaxy s3"; }
else if(PlayerInfo == 6) { Telefon = "Samsung Galaxy s2"; }
else if(PlayerInfo == 7) { Telefon = "Samsung Galaxy s4 Mini"; }
else if(PlayerInfo == 8) { Telefon = "Samsung Galaxy s3 Mini"; }
else if(PlayerInfo == 9) { Telefon = "iPhone 5s"; }
else if(PlayerInfo == 10) { Telefon = "iPhone 4s"; }
else if(PlayerInfo == 11) { Telefon = "iPhone 3"; }
else if(PlayerInfo == 12) { Telefon = "SONY Xperia z1"; }
else if(PlayerInfo == 13) { Telefon = "SONY Xperia E"; }
else if(PlayerInfo == 14) { Telefon = "SONY Xperia J"; }
new Spol;
if(PlayerInfo == 0) { Spol = "Musko"; }
else if(PlayerInfo == 1) { Spol = "Zensko"; }
new Drzava;
if(PlayerInfo == 0) { Drzava = "Bosna i Hercegovina"; }
else if(PlayerInfo == 1) { Drzava = "Srbija"; }
else if(PlayerInfo == 2) { Drzava = "Hrvatska"; }
else if(PlayerInfo == 3) { Drzava = "Crna Gora"; }
else if(PlayerInfo == 4) { Drzava = "Makedonija"; }
new Posao;
if(PlayerInfo == 0) { Posao = "Nema"; }
else if(PlayerInfo == 1) { Posao = "Vozac Autobusa"; }
format(coordsstring1, sizeof(coordsstring1),"{FF9500}\t~Podaci o igracu~\n\n{FFFFFF}Ime igraca:\t{2974FF}[%s]\n{FFFFFF}Godine:\t{2974FF}[%d]\n{FFFFFF}Spol:\t{2974FF}[%s]\n{FFFFFF}Drzava:\t{2974FF}[%s]\n\n", Name, Godine, Spol, Drzava);
format(coordsstring2, sizeof(coordsstring2),"{FF9500}\t~Podaci sa Servera~\n\n{FFFFFF}Level:\t{2974FF}[%d]\n{FFFFFF}Respekti:\t{2974FF}[%d/%d]\n{FFFFFF}Sati igranja:\t{2974FF}[]\n{FFFFFF}Posao:\t{2974FF}[%s]\n{FFFFFF}Organizacija:\t{2974FF}[]\n\n", Level, Respekti, LevelRespekti, Posao);
format(coordsstring3, sizeof(coordsstring3),"{FF9500}\t~Novac, zlato i dorga~\n\n{FFFFFF}Novac u dzepu:\t{2974FF}[%d{70CC00}${2974FF}]\n{FFFFFF}Novac na banci:\t{2974FF}[%d{70CC00}${2974FF}]\n{FFFFFF}Zlato:\t{2974FF}[%d{FFEE00}GR{2974FF}]\n{FFFFFF}Droga:\t{2974FF}[%d{E0E0E0}GR{2974FF}]\n\n", Novac, Banka, ZlatoGR, DrogaGR);
format(coordsstring4, sizeof(coordsstring4),"{FF9500}\t~Admin, Helper i Vip~\n\n{FFFFFF}Admin Level:\t{2974FF}[%d]\n{FFFFFF}Helper Level\t{2974FF}[%d]\n{FFFFFF}Vip Level:\t{2974FF}[%d]", Admin, Helper, Vip);
format(string, 736," %s%s%s%s",coordsstring1, coordsstring2, coordsstring3, coordsstring4);
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX,"{2974FF}RG STATS {FFFFFF}(/STATS) ",string,"OK","");
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}Slika/Video : ako treba mogu postavit
Hvala unaprijed 😄
