Jump to content
  • 0

Problema comanda /stats#GM Rgaming


Question

Posted

Salut!

Am luat si eu GM Real Gaming si am gasit un BUG.

Cand tastez stats ma pune sa aleg cum sa apara [text/dialog] . Sub forma de text merge foarte bine, dar cand aleg sa apara sub forma de dialog merge doar prima data cand dau /stats, dupa aceea, in chat scrie : 'SERVER: Unknowm command"

M-ar putea ajuta cineva in rezolvarea problemei ca eu m-am chinuit putin dar n'am reusit nimic altceva decat sa il fac sa-mi dea o multime de erori..

Multumesc !

Comanda:

[pawn]if(PlayerInfo[playerid][pStats] == 2)

{

new string2[1152];

new coordsstring[1152];

new year, month, day;

getdate(year,month,day);

format(string2, sizeof(string2),"{FFFFFF}» STATISTICI CONT: {800000}%s {FFFFFF}- %d.%d.%d « \n", name, day, month, year);

format(coordsstring, sizeof(coordsstring), "{FFFFFF}Level: {800000}%d {FFFFFF}| Sex: {800000}%s {FFFFFF}| Varsta: {800000}%d {FFFFFF}| Cash: {800000}$%s {FFFFFF}| Banca: {800000}$%s \n", level,atext,age,FormatNumber(cash),FormatNumber(account));

strcat(string2,coordsstring);

format(coordsstring, sizeof(coordsstring), "{FFFFFF}Cont Premium: {800000}%s {FFFFFF}| Casatorit: {800000}%s {FFFFFF}| OreJucate: {800000}%d {FFFFFF}| Job: {800000}%s \n", drank,married,ptime,jtext);

strcat(string2,coordsstring);

format(coordsstring, sizeof(coordsstring), "{FFFFFF}Imprumut: {800000}%s${FFFFFF}/{800000}%s$ {FFFFFF}| {800000}FPunish: %d/40 {FFFFFF}| PuncteWanted: {800000}%d{FFFFFF}/6 | Tel: {800000}%d \n",FormatNumber(imprumutscazut),FormatNumber(imprumut),wanted, fpunish, pnumber);

strcat(string2,coordsstring);

format(coordsstring, sizeof(coordsstring), "{FFFFFF}Droguri: {800000}%d {FFFFFF}| Materiale: %d {FFFFFF}| Respect: {800000}%d{FFFFFF}/{800000}%d {FFFFFF}| Factiune: {800000}%s {FFFFFF}| Rang: {800000}%s \n",drugs,mats,exp, expamount,ttext,rtext,fwarn, warns);

strcat(string2,coordsstring);

format(coordsstring, sizeof(coordsstring), "{FFFFFF}Credit: {800000}%d mesaje/%d apeluri {FFFFFF}| PuncteRob: {800000}%d/10 {FFFFFF}| FWarns: {800000}%d/3 {FFFFFF}| Warns: {800000}%d/3 \n\n",sms, call, PRob, fwarn, warns);

strcat(string2,coordsstring);

if(PlayerInfo[playerid][pAdmin] >= 1)

{

format(coordsstring, sizeof(coordsstring), "{FF0000}Administrator: %d | HP: %.1f | Casa: %d | Afacere: %d | HireKey: %d | Interior: %d | Local: %d | IP: %s \n", PlayerInfo[targetid][pAdmin],health,housekey,bizkey,HireCar[targetid],intir,local,plrip);

strcat(string2, coordsstring);

format(coordsstring, sizeof(coordsstring), "{FF0000}Vehicul [slot #1]: %d | Vehicul [slot #2]: %d | Vehicul [slot #3]: %d | Skin: %d", PlayerInfo[targetid][pPcarkey], PlayerInfo[targetid][pPcarkey2],PlayerInfo[playerid][pPcarkey3],skin);

strcat(string2, coordsstring);

}

ShowPlayerDialog(playerid,97,DIALOG_STYLE_MSGBOX,"Statistici cont",string2,"Iesire","");

}

}

new sendername[MAX_PLAYER_NAME];

GetPlayerName(playerid, sendername, sizeof(sendername));

printf("[DEBUG]: #ShowStats - %s", sendername);

}[/pawn]

[pawn]//-------------------------------[stats]--------------------------------------------------------------------------

if (strcmp(cmd, "/stats", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (gPlayerLogged[playerid] != 0)

{

ShowStats(playerid,playerid);

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "Nu esti logat!");

}

}

return 1;

}[/pawn]

ID messenger: yo.ady95 @yahoo.com .

Pentru informa?ii , ad?uga?i-m? !

2 answers to this question

Recommended Posts

Posted

Posteaza "ShowStats(playerid,playerid);" ar trebui sa fiu un "public"

Nu imi dau seama ce face "if(PlayerInfo[playerid][pStats] == 2)" e posibil dupa prima data cand dai /stats, sa nu mai fie == 2 deci sa-ti apara eroare...

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.