[Pomoc] String prob

Započeo Novica, Maj 14, 2012, 11:22:42 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Mod:Moj
Problem:pa imam problem sa stringom kod dijaloga on mi je 1000 a coordstring mi je 300 imam ih 5 e sad kada ja povecam string na npr 1500 on odma na srvu bude unknown command ? :/ Moze pomoc kako da ga povecam a da mi stats lepo radi ?
Deo skripte:KoJi?
Slike/Video://
RESPECT FOR MILANCE !

dialog može prikazati ako se ne varam nešto oko 1000 znakova, preko toga jednostavno odreže tekst...

ako ti izbaci unknown command, svejedno negdje u komandi imaš premali size za string...

string [1000]
                new coordsstring1[300];
new coordsstring2[300];
new coordsstring3[300];
new coordsstring4[300];
new coordsstring5[300];
    format(coordsstring1, sizeof(coordsstring1),"{FFFFFF}------- {FF7700}Osnovni Podaci {FFFFFF}--------\n{00BBFA}-Ime i Prezime:{FFFFFF}[%s]\n{00BBFA}-Respekti:{FFFFFF}[%d/%d]\n {00BBFA}-Level:{FFFFFF}[%d]\n{00BBFA}-Donator:{FFFFFF}[%s]\n{00BBFA}-Broj Telefona:{FFFFFF}[%d]\n {00BBFA}-Upozorenja:{FFFFFF}[%d]\n {00BBFA}-Sati igranja:{FFFFFF}[%d]", name,exp,expneeded,level,drank,pnumber,warns,ptime);
    format(coordsstring2, sizeof(coordsstring2),"\n{FFFFFF}------- {FF7700}Bankovski racun {FFFFFF}-------\n{00BBFA}-Dzep:{FFFFFF}[%d$]\n{00BBFA}-Banka:{FFFFFF}[%d$]\n",cash,account);
    format(coordsstring3, sizeof(coordsstring3),"{FFFFFF}------- {FF7700}Licna Karta {FFFFFF}-------\n-{00BBFA}Godine:{FFFFFF}[%d] {00BBFA}-Pol:{FFFFFF}[%s]\n{00BBFA}-Drzava:{FFFFFF}[%s] {00BBFA}Posao:{FFFFFF}[%s]\n{00BBFA}-Organizacija:{FFFFFF}[%s]   {00BBFA}Rank:{FFFFFF}[%s]\n{00BBFA}-Tim:{FFFFFF}[%s]\n{00BBFA}-U braku:{FFFFFF}[%d]\n",age,atext,otext,jtext,ftext,rtext,ttext,brak);
        format(coordsstring4, sizeof(coordsstring4),"\n{FFFFFF}------- {FF7700}Dosije {FFFFFF}--------\n{00BBFA}-Wanted:{FFFFFF}[%d]\n{00BBFA}-Ubistva:{FFFFFF}[%d]\n{00BBFA}-Smrti:{FFFFFF}[%d]\n{00BBFA}-Zlocini:{FFFFFF}[%d]\n{FF7700}Torba {FFFFFF}---------\n{00BBFA}-Droga:{FFFFFF}[%d]\n{00BBFA}-Materijali:{FFFFFF}[%d]\n{00BBFA}-Lotto Broj:{FFFFFF}[%d]\n{00BBFA}-Uhvacene ribe:{FFFFFF}[%d]\n",wanted,kills,deaths,crimes,drugs,mats,lottobr,fishes);
    format(coordsstring5, sizeof(coordsstring5),"{FFFFFF}------- {FF7700}Kljucevi {FFFFFF}--------\n{48E31C}{00BBFA}-Kuca:{FFFFFF}[%d] {00BBFA}-Firma:{FFFFFF}[%d] {00BBFA}-Local:{FFFFFF}[%d]\n\n{FF7700}",housekey,bizkey,local,drank);
    format(string, sizeof(string),"%s%s%s%s%s%s",coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5);
    ShowPlayerDialog(playerid, sizeof(string), DIALOG_STYLE_MSGBOX, "{0080C0}Balkan Express Stats", string , "Uredu", "");
}
return 1;
}
ovo je moj stats -.-' na drugom gm-u Tacnije na BlizZardu sam video string 4000 i sve radi al sto kod mene nece tako da radi ?
RESPECT FOR MILANCE !

new coordsstring1[300];
new coordsstring2[300];
new coordsstring3[300];
new coordsstring4[300];
new coordsstring5[300];
    format(coordsstring1, sizeof(coordsstring1),"{FFFFFF}------- {FF7700}Osnovni Podaci {FFFFFF}--------\n{00BBFA}-Ime i Prezime:{FFFFFF}[%s]\n{00BBFA}-Respekti:{FFFFFF}[%d/%d]\n {00BBFA}-Level:{FFFFFF}[%d]\n{00BBFA}-Donator:{FFFFFF}[%s]\n{00BBFA}-Broj Telefona:{FFFFFF}[%d]\n {00BBFA}-Upozorenja:{FFFFFF}[%d]\n {00BBFA}-Sati igranja:{FFFFFF}[%d]", name,exp,expneeded,level,drank,pnumber,warns,ptime);
    format(coordsstring2, sizeof(coordsstring2),"\n{FFFFFF}------- {FF7700}Bankovski racun {FFFFFF}-------\n{00BBFA}-Dzep:{FFFFFF}[%d$]\n{00BBFA}-Banka:{FFFFFF}[%d$]\n",cash,account);
    format(coordsstring3, sizeof(coordsstring3),"{FFFFFF}------- {FF7700}Licna Karta {FFFFFF}-------\n-{00BBFA}Godine:{FFFFFF}[%d] {00BBFA}-Pol:{FFFFFF}[%s]\n{00BBFA}-Drzava:{FFFFFF}[%s] {00BBFA}Posao:{FFFFFF}[%s]\n{00BBFA}-Organizacija:{FFFFFF}[%s]   {00BBFA}Rank:{FFFFFF}[%s]\n{00BBFA}-Tim:{FFFFFF}[%s]\n{00BBFA}-U braku:{FFFFFF}[%d]\n",age,atext,otext,jtext,ftext,rtext,ttext,brak);
        format(coordsstring4, sizeof(coordsstring4),"\n{FFFFFF}------- {FF7700}Dosije {FFFFFF}--------\n{00BBFA}-Wanted:{FFFFFF}[%d]\n{00BBFA}-Ubistva:{FFFFFF}[%d]\n{00BBFA}-Smrti:{FFFFFF}[%d]\n{00BBFA}-Zlocini:{FFFFFF}[%d]\n{FF7700}Torba {FFFFFF}---------\n{00BBFA}-Droga:{FFFFFF}[%d]\n{00BBFA}-Materijali:{FFFFFF}[%d]\n{00BBFA}-Lotto Broj:{FFFFFF}[%d]\n{00BBFA}-Uhvacene ribe:{FFFFFF}[%d]\n",wanted,kills,deaths,crimes,drugs,mats,lottobr,fishes);
    format(coordsstring5, sizeof(coordsstring5),"{FFFFFF}------- {FF7700}Kljucevi {FFFFFF}--------\n{48E31C}{00BBFA}-Kuca:{FFFFFF}[%d] {00BBFA}-Firma:{FFFFFF}[%d] {00BBFA}-Local:{FFFFFF}[%d]\n\n{FF7700}",housekey,bizkey,local,drank);
    ShowPlayerDialog(playerid, sizeof(string), DIALOG_STYLE_MSGBOX, "{0080C0}server uklonjen! Stats", coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5, "Uredu", "");
}
return 1;
}


Ili koristi strcat bolje je.

znaci uzmem ovo sto si ti dao i radice xD ?
RESPECT FOR MILANCE !


Nece brt sad mi jos gore -.-' nego sad imam jos 1 prob znaci imam kada se kuca pass stavljen DIALOG_STYLE_INPUT i tu radi ali kada stavin DIALOG_STYLE_PASSWORD evo sliku pogledaj sta se desi -.-'

RESPECT FOR MILANCE !

new statsstring[1500];
    strcat(statsstring, "{FFFFFF}------- {FF7700}Osnovni Podaci {FFFFFF}--------\n{00BBFA}-Ime i Prezime:{FFFFFF}[%s]\n{00BBFA}-Respekti:{FFFFFF}[%d/%d]\n {00BBFA}-Level:{FFFFFF}[%d]\n{00BBFA}-Donator:{FFFFFF}[%s]\n{00BBFA}-Broj Telefona:{FFFFFF}[%d]\n {00BBFA}-Upozorenja:{FFFFFF}[%d]\n {00BBFA}-Sati igranja:{FFFFFF}[%d]", name,exp,expneeded,level,drank,pnumber,warns,ptime);
    strcat(statsstring, "{FFFFFF}------- {FF7700}Bankovski racun {FFFFFF}-------\n{00BBFA}-Dzep:{FFFFFF}[%d$]\n{00BBFA}-Banka:{FFFFFF}[%d$]\n",cash,account);
    strcat(statsstring, "{FFFFFF}------- {FF7700}Licna Karta {FFFFFF}-------\n-{00BBFA}Godine:{FFFFFF}[%d] {00BBFA}-Pol:{FFFFFF}[%s]\n{00BBFA}-Drzava:{FFFFFF}[%s] {00BBFA}Posao:{FFFFFF}[%s]\n{00BBFA}-Organizacija:{FFFFFF}[%s]   {00BBFA}Rank:{FFFFFF}[%s]\n{00BBFA}-Tim:{FFFFFF}[%s]\n{00BBFA}-U braku:{FFFFFF}[%d]\n",age,atext,otext,jtext,ftext,rtext,ttext,brak);
        strcat(statsstring, "{FFFFFF}------- {FF7700}Dosije {FFFFFF}--------\n{00BBFA}-Wanted:{FFFFFF}[%d]\n{00BBFA}-Ubistva:{FFFFFF}[%d]\n{00BBFA}-Smrti:{FFFFFF}[%d]\n{00BBFA}-Zlocini:{FFFFFF}[%d]\n{FF7700}Torba {FFFFFF}---------\n{00BBFA}-Droga:{FFFFFF}[%d]\n{00BBFA}-Materijali:{FFFFFF}[%d]\n{00BBFA}-Lotto Broj:{FFFFFF}[%d]\n{00BBFA}-Uhvacene ribe:{FFFFFF}[%d]\n",wanted,kills,deaths,crimes,drugs,mats,lottobr,fishes);
    strcat(statsstring, "{FFFFFF}------- {FF7700}Kljucevi {FFFFFF}--------\n{48E31C}{00BBFA}-Kuca:{FFFFFF}[%d] {00BBFA}-Firma:{FFFFFF}[%d] {00BBFA}-Local:{FFFFFF}[%d]\n\n{FF7700}",housekey,bizkey,local,drank);
    ShowPlayerDialog(playerid, ID_DIALOGA, DIALOG_STYLE_MSGBOX, "{0080C0}server uklonjen! Stats", statsstring, "Uredu", "");
}
return 1;
}


Ovdje " ShowPlayerDialog(playerid, ID_DIALOGA, DIALOG_STYLE_MSGBOX, "{0080C0}server uklonjen! Stats", Login, "Uredu", "");"  stavi ID dialoga koji ti je za pregledavanje stats.
Poslednja Izmena: Maj 14, 2012, 20:30:20 POSLE PODNE od Dane

D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9603) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp serverGTARP\gamemodes\gtarp.pwn(9604) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp serverGTARP\gamemodes\gtarp.pwn(9604) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp serverGTARP\gamemodes\gtarp.pwn(9604) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9604) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9604) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9604) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9604) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9605) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9605) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9605) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9605) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9605) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9605) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9605) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9606) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9606) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9606) : warning 202: number of arguments does not match definition
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9597) : warning 204: symbol is assigned a value that is never used: "expneeded"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9593) : warning 204: symbol is assigned a value that is never used: "fishes"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9592) : warning 204: symbol is assigned a value that is never used: "lottobr"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9591) : warning 204: symbol is assigned a value that is never used: "crimes"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9589) : warning 204: symbol is assigned a value that is never used: "warns"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9588) : warning 204: symbol is assigned a value that is never used: "local"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9587) : warning 204: symbol is assigned a value that is never used: "bizkey"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9585) : warning 204: symbol is assigned a value that is never used: "account"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9584) : warning 204: symbol is assigned a value that is never used: "pnumber"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9583) : warning 204: symbol is assigned a value that is never used: "kills"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9582) : warning 204: symbol is assigned a value that is never used: "exp"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9581) : warning 204: symbol is assigned a value that is never used: "level"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9579) : warning 204: symbol is assigned a value that is never used: "mats"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9578) : warning 204: symbol is assigned a value that is never used: "drugs"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9577) : warning 204: symbol is assigned a value that is never used: "deaths"
D:\Users\Filip\Desktop\samp server\GTARP\gamemodes\gtarp.pwn(9576) : warning 204: symbol is assigned a value that is never used:
eo sta izbaci :O
Poslednja Izmena: Maj 14, 2012, 20:57:19 POSLE PODNE od Novica
RESPECT FOR MILANCE !