[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.

Probaj ovu za tu liniju
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));
Stvarno neznam sta ti je tu :S

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); tako stavi !

Daj cijeli dio kako si stavio pa cu ti srediti ...

Citat: [TG]$--L84S--$ poslato Februar 22, 2012, 14:55:35 POSLE PODNE
Daj cijeli dio kako si stavio pa cu ti srediti ...
Mislim da mu je problem bio do onog ", , level, cash  itd....

sad ovaj eror  :'( :'(

C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10327) : error 017: undefined symbol "string"
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10307) : warning 204: symbol is assigned a value that is never used: "warns"
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10295) : warning 204: symbol is assigned a value that is never used: "account"
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10294) : warning 204: symbol is assigned a value that is never used: "kreditbr"
C:\Documents and Settings\kk\Desktop\rp \gamemodes\sarajevo.pwn(10280) : warning 204: symbol is assigned a value that is never used: "age"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
[[/center]
DgL <3
Otisao s Foruma zz


Ti simboli ti se nigdje nekoriste.. izbrisi ih..milism :)

Citat: [TL:RP] sTrumF poslato Februar 22, 2012, 15:43:48 POSLE PODNE
Ti simboli ti se nigdje nekoriste.. izbrisi ih..milism :)

kako bre ne koriste :S
[[/center]
DgL <3
Otisao s Foruma zz


vlado_plavsic

Citat: ¢fgâ,,¢'87 poslato Februar 22, 2012, 15:50:14 POSLE PODNE
Citat: [TL:RP] sTrumF poslato Februar 22, 2012, 15:43:48 POSLE PODNE
Ti simboli ti se nigdje nekoriste.. izbrisi ih..milism :)

kako bre ne koriste :S

Lepo,ne koriste se u tom delu skripte gde si ih definisao.Izbrisi te linije.

a ovaj eror  :'( :'(

C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10327) : error 017: undefined symbol "string"
[[/center]
DgL <3
Otisao s Foruma zz


Citat: ¢fgâ,,¢'87 poslato Februar 22, 2012, 16:03:40 POSLE PODNE
a ovaj eror  :'( :'(

C:\Documents and Settings\kk\Desktop\rp\gamemodes\sarajevo.pwn(10327) : error 017: undefined symbol "string"

new string23[56];

Rjesio sam sve erore nema nista.ali problem je kada udjem u igru i kucam /stats samo ovo se pojavi.:S

SendClientMessage(playerid, COLOR_GRAD6,"Za Admine:");
format(coordsstring, sizeof(coordsstring), "- House key [%d] Business key [%d] Veh1 [%d] Veh2 [%d] Veh3 [%d] HireKey [%d] int:[%d] virworld:[%d] local[%d]", housekey,bizkey,carkey,carkey2,carkey3,HireCar[targetid],intir,virworld,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);


ovako sam sve stavio to i stats eo..

// stst
new red[512];
    new red2[512];
    new stats[1100];
    new string[56];
    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);
    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]\n",exp,expamount,drank,ftext,drugs,mats,housekey,bizkey,carkey,carkey2,carkey3);
    format(stats, 1100,"red,red2");
    ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{0000FF}Stats:",string,"Dobro","Dobro!");
}
}


samo to gore pojavi ovo nece ...
Poslednja Izmena: Februar 22, 2012, 18:56:42 POSLE PODNE od ¢fg™'87
[[/center]
DgL <3
Otisao s Foruma zz


Bump!
[[/center]
DgL <3
Otisao s Foruma zz


Daj bre covece kazi mi lepo dokle mislis da me zajebavas da znam ?!

Ko ti rekao da stavis ovo format(stats, 1100,"red,red2"); ?

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 ...

Mislim da sam ti 10 puta ispravljao to .... >:(

vlado_plavsic

Povecaj string?

Odnosno :

new string[258] // Ili vise..

ali kad ukucam /stats izbaci ovo u gm..

if (strcmp(cmd, "/stats", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged[playerid] != 0)
{
    if(pokazanistatsi[playerid] == 0)
    {
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s gleda u svoju Licnu kartu", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    TextDrawShowForPlayer(playerid,Text:Textdraw0[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw1[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw2[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw3[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw4[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw5[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw6[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw7[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw8[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw9[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw10[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw11[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw12[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw13[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw14[playerid]);
    TextDrawShowForPlayer(playerid,Text:Textdraw15[playerid]);
    pokazanistatsi[playerid] = 1;
    }
    else if(pokazanistatsi[playerid] == 1)
    {
TextDrawHideForPlayer(playerid, Textdraw0[playerid]);
TextDrawHideForPlayer(playerid, Textdraw1[playerid]);
TextDrawHideForPlayer(playerid, Textdraw2[playerid]);
TextDrawHideForPlayer(playerid, Textdraw3[playerid]);
TextDrawHideForPlayer(playerid, Textdraw4[playerid]);
TextDrawHideForPlayer(playerid, Textdraw5[playerid]);
TextDrawHideForPlayer(playerid, Textdraw6[playerid]);
TextDrawHideForPlayer(playerid, Textdraw7[playerid]);
TextDrawHideForPlayer(playerid, Textdraw8[playerid]);
TextDrawHideForPlayer(playerid, Textdraw9[playerid]);
TextDrawHideForPlayer(playerid, Textdraw10[playerid]);
TextDrawHideForPlayer(playerid, Textdraw11[playerid]);
TextDrawHideForPlayer(playerid, Textdraw12[playerid]);
TextDrawHideForPlayer(playerid, Textdraw13[playerid]);
TextDrawHideForPlayer(playerid, Textdraw14[playerid]);
TextDrawHideForPlayer(playerid, Textdraw15[playerid]);
TextDrawDestroy(Textdraw0[playerid]);
TextDrawDestroy(Textdraw1[playerid]);
TextDrawDestroy(Textdraw2[playerid]);
TextDrawDestroy(Textdraw3[playerid]);
TextDrawDestroy(Textdraw4[playerid]);
TextDrawDestroy(Textdraw5[playerid]);
TextDrawDestroy(Textdraw6[playerid]);
TextDrawDestroy(Textdraw7[playerid]);
TextDrawDestroy(Textdraw8[playerid]);
TextDrawDestroy(Textdraw9[playerid]);
TextDrawDestroy(Textdraw10[playerid]);
TextDrawDestroy(Textdraw11[playerid]);
TextDrawDestroy(Textdraw12[playerid]);
TextDrawDestroy(Textdraw13[playerid]);
TextDrawDestroy(Textdraw14[playerid]);
TextDrawDestroy(Textdraw15[playerid]);
pokazanistatsi[playerid] = 0;
    }
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste prijavljeni!");
}
}
return 1;
}
[[/center]
DgL <3
Otisao s Foruma zz