- 0
Problema comanda /stats
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
tagarta
Am mai postat odata pt. ca topicul de data trecuta a fost inchis fiindca nu am mai intrat sa il verific ca a fost forumul off..
Nick: dexter
Problema: 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
Erori / warnings: SERVER: Unknowm command
Lini/script: x
Ai incercat sa rezolvi singur ?: da
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]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]
PS:
[pawn]ShowStats(playerid,playerid);[/pawn] nu il mai gasesc in alta parte decat in "/stats"
ID messenger: yo.ady95 @yahoo.com .
Pentru informa?ii , ad?uga?i-m? !
17 answers to this question
Recommended Posts