Jump to content
  • 0

Ajutor /stats


Diabolik

Question

Salut Sa-mp.Ro.

Am vrut sa modific comanda /stats dar acum cand scriu /stats nu imi apare toate datele.

Poza: http://postimg.org/image/tpygipapj/

Pawno:

 new string[2000];
format(string, 2000, "\t\t\t\t\t\t Stats Galaxy Omega\n", 1900);
format(string, 2000, "{FFFFFF}Nume{FF0000} %s {3CD916}>< {FFFFFF}Level:{24BBFF} %d {3CD916}>< {FFFFFF}Factiune: %s \n\n", 1900,name,level,ttext);
format(string, 2000, "{FF0000}•{FFFFFF} Sex: [%s] Varsta: [%d] Viata: [%.1f] Bani: [%s] Bank: [%s] NrTelefon: [%d]\n", 1900,atext, varsta, shealth+50, FormatMoney(cash), FormatMoney(account), pnumber);
format(string, 2000, "{FF0000}•{FFFFFF} Rank: [%s] Sponsor: [%s] OreJucate: [%d] Respect: [%d/%d] NrLotto: [%d]\n", 1900,rtext, drank,ptime,exp,expamount,lotto);
format(string, 2000, "{FF0000}•{FFFFFF} TimpArest: [%d] WantedLevel: [%d] Casatorit/a: [%s] Boala: [%s]\n", 1900,arrests,wanted,married,dtext);
format(string, 2000, "{FF0000}•{FFFFFF} FishesCaught: [%d] BiggestFish: [%d] Droguri: [%d] Materiale: [%d] Pilule: [%d] Warn: [%d]\n", 1900,fishes,bigfish,drugs,mats,pills,warns);
ShowPlayerDialog( playerid, 6518, DIALOG_STYLE_MSGBOX, " ", string, "Ok", "" );

Nu imi da nici o eroare in pawno cand il compilez.

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Da lol ca nu da :D.

Si mie mi se mai intampla .

Foloseste \n .

Uite mai jos rezolvarea :

[pawn] new string[2000];

format(string, 2000, "\t\t\t\t\t\t Stats Galaxy Omega\n", 1900);

format(string, 2000, "\n{FFFFFF}Nume{FF0000} %s {3CD916}\n>< {FFFFFF}Level:{24BBFF} %d {3CD916}\n>< {FFFFFF}Factiune: %s \n\n", 1900,name,level,ttext);

format(string, 2000, "\n{FF0000}•{FFFFFF} Sex: [%s] \nVarsta: [%d] \nViata: [%.1f] \nBani: [%s] \nBank: [%s] \nNrTelefon: [%d]\n", 1900,atext, varsta, shealth+50, FormatMoney(cash), FormatMoney(account), pnumber);

format(string, 2000, "{FF0000}•{FFFFFF} \nRank: [%s] \nSponsor: [%s] \nOreJucate: [%d] \nRespect: [%d/%d] \nNrLotto: [%d]\n", 1900,rtext, drank,ptime,exp,expamount,lotto);

format(string, 2000, "\n{FF0000}•{FFFFFF} TimpArest: [%d] \nWantedLevel: [%d] \nCasatorit/a: [%s] \nBoala: [%s]\n", 1900,arrests,wanted,married,dtext);

format(string, 2000, "\n{FF0000}•{FFFFFF} FishesCaught: [%d] \nBiggestFish: [%d] \nDroguri: [%d] \nMateriale: [%d] \nPilule: [%d] Warn: [%d]\n", 1900,fishes,bigfish,drugs,mats,pills,warns);

ShowPlayerDialog( playerid, 6518, DIALOG_STYLE_MSGBOX, " ", string, "Ok", "" );[/pawn]

Asa iti va merge , dar aranjeaza-l dupa bunul plac :P

idiots.png
Link to comment
Share on other sites

new string[2000];

format(string, 2000, "\t\t\t\t\t\t Stats Galaxy Omega\n", 1900);

format(string, 2000, "%s\n{FFFFFF}Nume{FF0000} %s {3CD916}\n>< {FFFFFF}Level:{24BBFF} %d {3CD916}\n>< {FFFFFF}Factiune: %s \n\n",string,name,level,ttext);

format(string, 2000, "%s\n{FF0000}•{FFFFFF} Sex: [%s] \nVarsta: [%d] \nViata: [%.1f] \nBani: [%s] \nBank: [%s] \nNrTelefon: [%d]\n", string,atext, varsta, shealth+50, FormatMoney(cash), FormatMoney(account), pnumber);

uite asa trb sa faci sper ca te-ai prins de faza

Link to comment
Share on other sites

Fa asa :

[pawn]

CMD:mystats( playerid, params[ ] )

{

new x[ 30 ], x1[ 30 ], x2[ 30 ], x3[ 30], xx[ 100];

format( x, sizeof x, "Nume: %s", GetName( playerid ) );

format( x1, sizeof x1, "Bani: %d", GetPlayerMoney( playerid ) );

format( x2, sizeof x2, "Scor: %d", GetPlayerScore( playerid ) );

format( x3, sizeof x3, "IP: %s", GetIp( playerid ) );

format( xx, sizeof xx, "%s %s %s %s %s", x, x1, x2, x3 );

ShowPlayerDialog( playerid, STATS, DIALOG_STYLE_MSGBOX, "Stats", xx, "Ok", "Cancel" );

return ( 1 );

}[/pawn]

Ceva in genu de mai sus . Cred ca ai inteles daca nu contacteaza-ma ...

idiots.png
Link to comment
Share on other sites

Poftim...

[pawn]new string[2000];

format(string, 2000, "\t\t\t\t\t\t Stats Galaxy Omega\n");

format(string, 2000, "%s{FFFFFF}Nume{FF0000} %s {3CD916}\n>< {FFFFFF}Level:{24BBFF} %d {3CD916}\n>< {FFFFFF}Factiune: %s \n\n", string, name, level, ttext);

format(string, 2000, "%s\n{FF0000}•{FFFFFF} Sex: [%s] \nVarsta: [%d] \nViata: [%.1f] \nBani: [%s] \nBank: [%s] \nNrTelefon: [%d]\n", string, atext, varsta, shealth+50, FormatMoney(cash), FormatMoney(account), pnumber);

format(string, 2000, "%s\n{FF0000}•{FFFFFF} \nRank: [%s] \nSponsor: [%s] \nOreJucate: [%d] \nRespect: [%d/%d] \nNrLotto: [%d]\n", string, ,rtext, drank, ptime, exp, expamount, lotto);

format(string, 2000, "%s\n{FF0000}•{FFFFFF} TimpArest: [%d] \nWantedLevel: [%d] \nCasatorit/a: [%s] \nBoala: [%s]\n", string, arrests, wanted, married, dtext);

format(string, 2000, "%s\n{FF0000}•{FFFFFF} FishesCaught: [%d] \nBiggestFish: [%d] \nDroguri: [%d] \nMateriale: [%d] \nPilule: [%d] Warn: [%d]\n", string, fishes, bigfish, drugs, mats, pills, warns);

ShowPlayerDialog( playerid, 6518, DIALOG_STYLE_MSGBOX, " ", string, "Ok", "" );[/pawn]

Anakin" post="144003" timestamp="1369664489"]

Fa asa :

[pawn]

CMD:mystats( playerid, params[ ] )

{

new x[ 30 ], x1[ 30 ], x2[ 30 ], x3[ 30], xx[ 100];

format( x, sizeof x, "Nume: %s", GetName( playerid ) );

format( x1, sizeof x1, "Bani: %d", GetPlayerMoney( playerid ) );

format( x2, sizeof x2, "Scor: %d", GetPlayerScore( playerid ) );

format( x3, sizeof x3, "IP: %s", GetIp( playerid ) );

format( xx, sizeof xx, "%s %s %s %s %s", x, x1, x2, x3 );

ShowPlayerDialog( playerid, STATS, DIALOG_STYLE_MSGBOX, "Stats", xx, "Ok", "Cancel" );

return ( 1 );

}[/pawn]

Ceva in genu de mai sus . Cred ca ai inteles daca nu contacteaza-ma ...

Asta e o prostie, nu ai nevoie de "N" string-uri si "N" format-uri atunci cand poti face totul dintr-un singur string si dintr-unul sau mai multe format-uri (nu cate-un format pentru fiecare linie) :grin:.

3r4AlPA.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.