[Pomoc] stats u textdrawu..hvala svima do neba moze lock!

Započeo Otisao s Foruma!, Februar 21, 2012, 22:03:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: FG
Detaljan opis problema: e ovako dali mi moze neko da promjeni stats ovaj mi je u textdrawu a ja bi htjeo u dialogu mnogo me nervira ovaj   :'( :'(
Dio skripte:
Zamolio bih nekog 2 mjeseca se peglam sa ovim :S  http://pastebin.com/Edjvjxt1
Poslednja Izmena: Februar 22, 2012, 23:01:27 POSLE PODNE od ¢fg™'87
[[/center]
DgL <3
Otisao s Foruma zz


new red[256];
new stats[512];
format(red, sizeof(red), "Primer: Novac[%d]\nLevel:[%d]\nBlabla", ovde sad varijable od novca,levela itd ....);
format(stats, 512," %s",red); //ovde kod red dodas npr red2 ako dodas jos koji format,takodje i ovo %s povecas na %s%s ili koliko vec formata dodajes ...
ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_MSGBOX, "Status", stats , "Ok", "");



Eto dao sam ti primer,to stavis umesto tih textdrawa tu...

mozes brate u taj pastebin  nmg nikako uvijek erore izbaca.
[[/center]
DgL <3
Otisao s Foruma zz


Citat: ¢fgâ,,¢'87 poslato Februar 21, 2012, 22:14:21 POSLE PODNE
mozes brate u taj pastebin  nmg nikako uvijek erore izbaca.
Pa nece ti pastebin popraviti erore,jesi li uskladio varijable sa kodovima...?I koje erore ti izbacuje?

On ti je lepo namazo ti samo ubacis sta zelis imati u statsima

pa brate samo ti to paste u novi da ja onda u gamemod i da vidim ocel izbacit erora posto neznam kako da to ubacim..S
[[/center]
DgL <3
Otisao s Foruma zz


sry za dp  :'( :'(

ovako sam stavio umjesto onog..

format(string,sizeof(string),"------------ \nLevel:[%d] \nPol:[%s] \nDzep:[$%d] \nBanka:[$%d] \nBroj Telefona:[%d] \n------------ \nSati Igranja:[%d] \nPosao:[%s]
      format(string,sizeof(string),"\nRespekt:[%d/%d] \nDonateRank:[%s] \n------------ \nOrganizacija:[%s] \nDroga:[%d] \nMaterijali:[%d] \n----------- \nKljuc kuce [%d] \nKljuc biznisa [%d] \nVeh1 [%d] \nVeh2 [%d] \nVeh3 [%d]",level,atext,cash,account,pnumber,ptime,jtext,exp,expamount,drank,ftext,drugs,mats,housekey,bizkey,carkey,carkey2,carkey3);
  ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{0000FF}Stats:",string,"Dobro","Dobro!");
}
}


izbaci ove erore.

C:\Documents and Settings\kk\Desktop\rp\pawno\include\JunkBuster.inc(2288) : warning 219: local variable "month" shadows a variable at a preceding level
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10325) : error 017: undefined symbol "string"
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10325) : error 017: undefined symbol "string"
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10325) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10325) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
[[/center]
DgL <3
Otisao s Foruma zz


Daj samo liniju 10325, ne znam koja je od ove dve.
Poslednja Izmena: Februar 21, 2012, 23:41:25 POSLE PODNE od Frank.

Cekaj ti mene sad zajebavas?Covece pogledaj kako sam ti dao pa uporedi to sa tvojim !


new red[512];
new red2[512];
new stats[1100];
format(red, sizeof(red), "Level:[%d] \nPol:[%s] \nDzep:[$%d] \nBanka:[$%d] \nBroj Telefona:[%d] \n------------ \nSati Igranja:[%d] \nPosao:[%s]", ,level,atext,cash,account,pnumber,ptime,jtext);
      format(red2,sizeof(red2),"\nRespekt:[%d/%d] \nDonateRank:[%s] \n------------ \nOrganizacija:[%s] \nDroga:[%d] \nMaterijali:[%d] \n----------- \nKljuc kuce [%d] \nKljuc biznisa [%d] \nVeh1 [%d] \nVeh2 [%d] \nVeh3 [%d]",exp,expamount,drank,ftext,drugs,mats,housekey,bizkey,carkey,carkey2,carkey3);
format(stats, 1100," %s%s",red,red2); //ovde kod red dodas npr red2 ako dodas jos koji format,takodje i ovo %s povecas na %s%s ili koliko vec formata dodajes ...
  ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{0000FF}Stats:",string,"Dobro","Dobro!");
}
}


Eto,i sledeci put razmisli pre nego sto samo pokusas da smuckas na brzaka nesto.

 tako ubacim i ovo... :'( :'( :'(

C:\Documents and Settings\kk\Desktop\rp\pawno\include\JunkBuster.inc(2288) : warning 219: local variable "month" shadows a variable at a preceding level
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : error 017: undefined symbol "cash"
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


format(red, sizeof(red), "Level:[%d] \nPol:[%s] \nDzep:[$%d] \nBanka:[$%d] \nBroj Telefona:[%d] \n------------ \nSati Igranja:[%d] \nPosao:[%s]", ,level,atext,cash,account,pnumber,ptime,jtext); ovo je linija 10328
Poslednja Izmena: Februar 22, 2012, 00:03:05 PRE PODNE od ¢fg™'87
[[/center]
DgL <3
Otisao s Foruma zz


Citat: ¢fgâ,,¢'87 poslato Februar 22, 2012, 00:00:29 PRE PODNE
tako ubacim i ovo... :'( :'( :'(

C:\Documents and Settings\kk\Desktop\rp\pawno\include\JunkBuster.inc(2288) : warning 219: local variable "month" shadows a variable at a preceding level
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : error 017: undefined symbol "cash"
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10328) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


format(red, sizeof(red), "Level:[%d] \nPol:[%s] \nDzep:[$%d] \nBanka:[$%d] \nBroj Telefona:[%d] \n------------ \nSati Igranja:[%d] \nPosao:[%s]", ,level,atext,cash,account,pnumber,ptime,jtext); ovo je linija 10328


new red[512];
new red2[512];
new stats[1100];
format(red, sizeof(red), "Level:[%d] \nPol:[%s] \nDzep:[$%d] \nBanka:[$%d] \nBroj Telefona:[%d] \n------------ \nSati Igranja:[%d] \nPosao:[%s]",level,atext,cash,account,pnumber,ptime,jtext);
      format(red2,sizeof(red2),"\nRespekt:[%d/%d] \nDonateRank:[%s] \n------------ \nOrganizacija:[%s] \nDroga:[%d] \nMaterijali:[%d] \n----------- \nKljuc kuce [%d] \nKljuc biznisa [%d] \nVeh1 [%d] \nVeh2 [%d] \nVeh3 [%d]",exp,expamount,drank,ftext,drugs,mats,housekey,bizkey,carkey,carkey2,carkey3);
format(stats, 1100," %s%s",red,red2); //ovde kod red dodas npr red2 ako dodas jos koji format,takodje i ovo %s povecas na %s%s ili koliko vec formata dodajes ...
  ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{0000FF}Stats:",string,"Dobro","Dobro!");
}
}


Ako ti bude i dalje izbacivalo "undefined symbol cash" kopiraj komandu za novac i samo ispred stavi new cash = sad ovde ono playerinfo[playerid][pcash] ili kako vec ...

Opet nece sada 20erora.. :'( :'( :'(
[[/center]
DgL <3
Otisao s Foruma zz


Citat: ¢fgâ,,¢'87 poslato Februar 22, 2012, 00:19:35 PRE PODNE
Opet nece sada 20erora.. :'( :'( :'(
Kakvih crnih 20 erora,to moze biti samo do ove 2 zagrade dole ,ja sam samo editovao tvoj kod sto si postavio sa zagradama KOJI TI JA OCITO NISAM DAO U PRVOM POSTU !

ono za pare sam rjesio bilo ono */
ovi erori jos  :'( :'( :'( :'( :'(

C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10324) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


format(red, sizeof(red), "Level:[%d] \nPol:[%s] \nDzep:[$%d] \nBanka:[$%d] \nBroj Telefona:[%d] \n------------ \nSati Igranja:[%d] \nPosao:[%s]\n", ,level,atext,cash,pAccount,pnumber,ptime,jtext); ovo je ta linija nez sta vise da radim :S
Poslednja Izmena: Februar 22, 2012, 04:42:57 PRE PODNE od ¢fg™'87
[[/center]
DgL <3
Otisao s Foruma zz


prekopiras sta ti je dao Nxidza i ubacis svoje varijable