[Pomoc] stats

Započeo |TED| Boca SRB, Oktobar 20, 2012, 19:05:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:BE X8
Detaljan opis problema:E ovako u stats mi vise da ima veh 1 veh 2 veh 3 ali kad kucam stats mi ne pise moze li neko da mi sredi
Dio skripte:new married[30];
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
  new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectTime];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new level = PlayerInfo[targetid][pLevel];
new plata = PlayerInfo[targetid][pPayCheck];
new exp = PlayerInfo[targetid][pExp];
new ribe = PlayerInfo[targetid][pFishes];
new lottonr = PlayerInfo[targetid][pLottoNr];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new housekey = PlayerInfo[targetid][pPhousekey];
new bizkey = PlayerInfo[targetid][pPbiskey];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new kola = PlayerInfo[targetid][pPcarkey];
new kola2 = PlayerInfo[targetid][pPcarkey2];
new kola3 = PlayerInfo[targetid][pPcarkey3];
new warns = PlayerInfo[targetid][pWarns];
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new string[1024];
new coordsstring1[250];
new coordsstring2[300];
new coordsstring3[110];
new coordsstring4[164];
new coordsstring5[200];
format(coordsstring1, sizeof(coordsstring1),"{00C0FF}--------------------------------------------------------------------\n{FCB683}Licna karta\n{43B1FA}Ime i Prezime:{FFFFFF}[%s]\n{43B1FA}Pol:{FFFFFF}[%s]\n{43B1FA}Drzava:{FFFFFF}[%s]\n{43B1FA}Starost:{FFFFFF}[%d]", name,atext,otext,age);//\nU braku sa: [%s]
format(coordsstring2, sizeof(coordsstring2),"\n{FCB683}Podatci sa servera\n{43B1FA}Level:{FFFFFF}[%i]\n{43B1FA}Respekti:{FFFFFF}[%i/%i]\n{43B1FA}Donatorski rank:{FFFFFF}[%s]\n{43B1FA}Broj telefona:{FFFFFF}[%d]\n{43B1FA}Upozorenja:{FFFFFF}[%d]\n{43B1FA}U braku:{FFFFFF}[%s]\nS{43B1FA}ati igranja:{FFFFFF}[%d]\n{FFBB00}Posao:{FFFFFF}[%s]\n{FFBB00}Organizacija:{FFFFFF}[%s]\n{FFBB00}Rank:{FFFFFF}[%s]",level,exp,expamount,drank,pnumber,warns,bracnostanje,/*married*/ptime,jtext,ftext,rtext);
format(coordsstring3, sizeof(coordsstring3),"\n{FCB683}Financijski izveštaj\n{43B1FA}Plata:{FFFFFF}[%d]\n{43B1FA}Novac u dzepu:{FFFFFF}[%d]\n{43B1FA}Novac u banci:{FFFFFF}[%d]",plata,cash,account);
format(coordsstring4, sizeof(coordsstring4),"\n{FCB683}Ranac{00C0FF}\n{43B1FA}Lotto broj:{FFFFFF}[%d]\n{43B1FA}Uhvacene ribe:{FFFFFF}[%d]\n{43B1FA}Materijali:{FFFFFF}[%d]\n{43B1FA}Droga:{FFFFFF}[%d]\n",lottonr,ribe,drugs,mats);
format(coordsstring5, sizeof(coordsstring5),"\n{FCB683}Kljucevi{00C0FF}\n{43B1FA}Kuca:{FFFFFF}[%d] /n{FFBB00}Firma:{FFFFFF}[%d] /n{43B1FA}Veh 1:{FFFFFF}[%i] /n{43B1FA}Veh 2:{FFFFFF}[%i]  n/{43B1FA}Veh 3:{FFFFFF}[%i]\n{00C0FF}--------------------------------------------------------------------",housekey,bizkey,kola,kola2,kola3);
        format(coordsstring5, sizeof(coordsstring5),"\n{FCB683}Skills{00C0FF}\n{43B1FA}SkillOruzija:3,4\nSkillHodanja:Senior!\nXlos:3.0\n{00C0FF}--------------------------------------------------------------------",housekey);
format(string, sizeof(string),"%s%s%s%s%s",coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5);
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX,"Balkan Tropico StatePlay",string," Uredu ","");
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):evo slika http://www.zaslike.com/viewer.php?file=4m3zj2q8r8squjndrc58.png

Vidiš ova 2 stringa,
format(coordsstring5, sizeof(coordsstring5),"\n{FCB683}Kljucevi{00C0FF}\n{43B1FA}Kuca:{FFFFFF}[%d] /n{FFBB00}Firma:{FFFFFF}[%d] /n{43B1FA}Veh 1:{FFFFFF}[%i] /n{43B1FA}Veh 2:{FFFFFF}[%i]  n/{43B1FA}Veh 3:{FFFFFF}[%i]\n{00C0FF}--------------------------------------------------------------------",housekey,bizkey,kola,kola2,kola3);
        format(coordsstring5, sizeof(coordsstring5),"\n{FCB683}Skills{00C0FF}\n{43B1FA}SkillOruzija:3,4\nSkillHodanja:Senior!\nXlos:3.0\n{00C0FF}--------------------------------------------------------------------",housekey);


Imaju isti naziv i zato ti ne ispisuje ovu prvu , tako da stavi ovako


new married[30];
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
  new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectTime];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new level = PlayerInfo[targetid][pLevel];
new plata = PlayerInfo[targetid][pPayCheck];
new exp = PlayerInfo[targetid][pExp];
new ribe = PlayerInfo[targetid][pFishes];
new lottonr = PlayerInfo[targetid][pLottoNr];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new housekey = PlayerInfo[targetid][pPhousekey];
new bizkey = PlayerInfo[targetid][pPbiskey];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new kola = PlayerInfo[targetid][pPcarkey];
new kola2 = PlayerInfo[targetid][pPcarkey2];
new kola3 = PlayerInfo[targetid][pPcarkey3];
new warns = PlayerInfo[targetid][pWarns];
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new string[1024];
new coordsstring1[250];
new coordsstring2[300];
new coordsstring3[110];
new coordsstring4[164];
new coordsstring5[200];
                new coordsstring6[200];
format(coordsstring1, sizeof(coordsstring1),"{00C0FF}--------------------------------------------------------------------\n{FCB683}Licna karta\n{43B1FA}Ime i Prezime:{FFFFFF}[%s]\n{43B1FA}Pol:{FFFFFF}[%s]\n{43B1FA}Drzava:{FFFFFF}[%s]\n{43B1FA}Starost:{FFFFFF}[%d]", name,atext,otext,age);//\nU braku sa: [%s]
format(coordsstring2, sizeof(coordsstring2),"\n{FCB683}Podatci sa servera\n{43B1FA}Level:{FFFFFF}[%i]\n{43B1FA}Respekti:{FFFFFF}[%i/%i]\n{43B1FA}Donatorski rank:{FFFFFF}[%s]\n{43B1FA}Broj telefona:{FFFFFF}[%d]\n{43B1FA}Upozorenja:{FFFFFF}[%d]\n{43B1FA}U braku:{FFFFFF}[%s]\nS{43B1FA}ati igranja:{FFFFFF}[%d]\n{FFBB00}Posao:{FFFFFF}[%s]\n{FFBB00}Organizacija:{FFFFFF}[%s]\n{FFBB00}Rank:{FFFFFF}[%s]",level,exp,expamount,drank,pnumber,warns,bracnostanje,/*married*/ptime,jtext,ftext,rtext);
format(coordsstring3, sizeof(coordsstring3),"\n{FCB683}Financijski izveštaj\n{43B1FA}Plata:{FFFFFF}[%d]\n{43B1FA}Novac u dzepu:{FFFFFF}[%d]\n{43B1FA}Novac u banci:{FFFFFF}[%d]",plata,cash,account);
format(coordsstring4, sizeof(coordsstring4),"\n{FCB683}Ranac{00C0FF}\n{43B1FA}Lotto broj:{FFFFFF}[%d]\n{43B1FA}Uhvacene ribe:{FFFFFF}[%d]\n{43B1FA}Materijali:{FFFFFF}[%d]\n{43B1FA}Droga:{FFFFFF}[%d]\n",lottonr,ribe,drugs,mats);
format(coordsstring5, sizeof(coordsstring5),"\n{FCB683}Kljucevi{00C0FF}\n{43B1FA}Kuca:{FFFFFF}[%d] /n{FFBB00}Firma:{FFFFFF}[%d] /n{43B1FA}Veh 1:{FFFFFF}[%i] /n{43B1FA}Veh 2:{FFFFFF}[%i]  n/{43B1FA}Veh 3:{FFFFFF}[%i]\n{00C0FF}--------------------------------------------------------------------",housekey,bizkey,kola,kola2,kola3);
        format(coordsstring6, sizeof(coordsstring6),"\n{FCB683}Skills{00C0FF}\n{43B1FA}SkillOruzija:3,4\nSkillHodanja:Senior!\nXlos:3.0\n{00C0FF}--------------------------------------------------------------------",housekey);
format(string, sizeof(string),"%s%s%s%s%s",coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5,coordsstring6);
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX,"Balkan Tropico server uklonjen!",string," Uredu ","");
}
}

Citat: Muhamed. poslato Oktobar 20, 2012, 20:30:33 POSLE PODNE
Vidiš ova 2 stringa,
format(coordsstring5, sizeof(coordsstring5),"\n{FCB683}Kljucevi{00C0FF}\n{43B1FA}Kuca:{FFFFFF}[%d] /n{FFBB00}Firma:{FFFFFF}[%d] /n{43B1FA}Veh 1:{FFFFFF}[%i] /n{43B1FA}Veh 2:{FFFFFF}[%i]  n/{43B1FA}Veh 3:{FFFFFF}[%i]\n{00C0FF}--------------------------------------------------------------------",housekey,bizkey,kola,kola2,kola3);
        format(coordsstring5, sizeof(coordsstring5),"\n{FCB683}Skills{00C0FF}\n{43B1FA}SkillOruzija:3,4\nSkillHodanja:Senior!\nXlos:3.0\n{00C0FF}--------------------------------------------------------------------",housekey);


Imaju isti naziv i zato ti ne ispisuje ovu prvu , tako da stavi ovako


new married[30];
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
  new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectTime];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new level = PlayerInfo[targetid][pLevel];
new plata = PlayerInfo[targetid][pPayCheck];
new exp = PlayerInfo[targetid][pExp];
new ribe = PlayerInfo[targetid][pFishes];
new lottonr = PlayerInfo[targetid][pLottoNr];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new housekey = PlayerInfo[targetid][pPhousekey];
new bizkey = PlayerInfo[targetid][pPbiskey];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new kola = PlayerInfo[targetid][pPcarkey];
new kola2 = PlayerInfo[targetid][pPcarkey2];
new kola3 = PlayerInfo[targetid][pPcarkey3];
new warns = PlayerInfo[targetid][pWarns];
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new string[1024];
new coordsstring1[250];
new coordsstring2[300];
new coordsstring3[110];
new coordsstring4[164];
new coordsstring5[200];
                new coordsstring6[200];
format(coordsstring1, sizeof(coordsstring1),"{00C0FF}--------------------------------------------------------------------\n{FCB683}Licna karta\n{43B1FA}Ime i Prezime:{FFFFFF}[%s]\n{43B1FA}Pol:{FFFFFF}[%s]\n{43B1FA}Drzava:{FFFFFF}[%s]\n{43B1FA}Starost:{FFFFFF}[%d]", name,atext,otext,age);//\nU braku sa: [%s]
format(coordsstring2, sizeof(coordsstring2),"\n{FCB683}Podatci sa servera\n{43B1FA}Level:{FFFFFF}[%i]\n{43B1FA}Respekti:{FFFFFF}[%i/%i]\n{43B1FA}Donatorski rank:{FFFFFF}[%s]\n{43B1FA}Broj telefona:{FFFFFF}[%d]\n{43B1FA}Upozorenja:{FFFFFF}[%d]\n{43B1FA}U braku:{FFFFFF}[%s]\nS{43B1FA}ati igranja:{FFFFFF}[%d]\n{FFBB00}Posao:{FFFFFF}[%s]\n{FFBB00}Organizacija:{FFFFFF}[%s]\n{FFBB00}Rank:{FFFFFF}[%s]",level,exp,expamount,drank,pnumber,warns,bracnostanje,/*married*/ptime,jtext,ftext,rtext);
format(coordsstring3, sizeof(coordsstring3),"\n{FCB683}Financijski izveštaj\n{43B1FA}Plata:{FFFFFF}[%d]\n{43B1FA}Novac u dzepu:{FFFFFF}[%d]\n{43B1FA}Novac u banci:{FFFFFF}[%d]",plata,cash,account);
format(coordsstring4, sizeof(coordsstring4),"\n{FCB683}Ranac{00C0FF}\n{43B1FA}Lotto broj:{FFFFFF}[%d]\n{43B1FA}Uhvacene ribe:{FFFFFF}[%d]\n{43B1FA}Materijali:{FFFFFF}[%d]\n{43B1FA}Droga:{FFFFFF}[%d]\n",lottonr,ribe,drugs,mats);
format(coordsstring5, sizeof(coordsstring5),"\n{FCB683}Kljucevi{00C0FF}\n{43B1FA}Kuca:{FFFFFF}[%d] /n{FFBB00}Firma:{FFFFFF}[%d] /n{43B1FA}Veh 1:{FFFFFF}[%i] /n{43B1FA}Veh 2:{FFFFFF}[%i]  n/{43B1FA}Veh 3:{FFFFFF}[%i]\n{00C0FF}--------------------------------------------------------------------",housekey,bizkey,kola,kola2,kola3);
        format(coordsstring6, sizeof(coordsstring6),"\n{FCB683}Skills{00C0FF}\n{43B1FA}SkillOruzija:3,4\nSkillHodanja:Senior!\nXlos:3.0\n{00C0FF}--------------------------------------------------------------------",housekey);
format(string, sizeof(string),"%s%s%s%s%s",coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5,coordsstring6);
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX,"Balkan Tropico server uklonjen!",string," Uredu ","");
}
}

Hvala brate moze lock!