[HELP] /stats in dialog
#1

I already make a dialog, it work but doesnt show any text inside it just a black like

Player Stats

[CLOSE]

pawn Код:
new coordsstring[768],coordsstringA[128],coordsstringB[128],coordsstringC[128],coordsstringD[128],coordsstringE[128],coordsstringF[128],coordsstringG[128];
        format(coordsstring, sizeof(coordsstringA),"%s - Level %d | %s | Age: %d | Total wealth: $%d | Playing hours: %d | Phone number: %s | Warnings: %d",GetPlayerNameEx(targetid), level, sext, age, totalwealth, ptime, pnumber, warns);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstringB), "Cash: $%d | Bank balance: $%d | Upgrade points: %d | Spawn armor: %.0f | Next level: %d/%d hours ($%d)", cash, account, upgradep, shealth, exp, expamount, costlevel);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstringC), "%s: %s | Rank: %s (%d) | Division: %s | Job: %s (level: %d) | Job 2: %s (level: %d)", facfam, employer, rank, PlayerInfo[targetid][pRank], division, jtext,jlevel,jtext2, jlevel2);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstringD), "Crimes: %d | Arrests: %d | Insurance: %s | Wanted level: %d | Health: %.1f | Armor: %.1f | Paintball Tokens: %d",crimes,arrests,insur, wanted, health, armor, ptokens);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstringE), "Married to: %s | Biggest fish: %d | Pot: %d | Crack: %d | Packages: %d | Crates: %d | Radio frequency: %d khz",married,bigfish,pot,crack,packages,crates, radiofreq);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstringF), "Rope: %d | Cigars: %d | Sprunk: %d | Spray: %d | Screwdrivers: %d | VIP tokens: %d | Checks: %d | VIP: %s | Biz: %s",rope,cigars,sprunk,spray, PlayerInfo[targetid][pScrewdriver],tokens,checks,drank, pBiz);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstringG), "Materials: %d | ADMutes: %d | NMutes: %d | RMutes: %d | Weapons Restricted: %d | Gang Warns: %d", mats, admutes, nmutes, PlayerInfo[targetid][pRMutedTotal],PlayerInfo[targetid][pWRestricted], PlayerInfo[targetid][pGangWarn]);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstring), "%s\n%s\n%s\n%s\n%s\n%s\n%s",coordsstringA,coordsstringB,coordsstringC,coordsstringD,coordsstringE,coordsstringF,coordsstringG);
        ShowPlayerDialog(playerid,841,DIALOG_STYLE_MSGBOX,"Player Stats",coordsstring,"Close","");
This is my /stats command

pawn Код:
CMD:stats(playerid, params[]) {
    if (gPlayerLogged{playerid} != 0) {
        ShowStats(playerid,playerid);
    }
    return 1;
}
Hope someone can help me with that.
Reply
#2

BUMP!
Reply
#3

Hello,

format(coordsstring, sizeof(coordsstringA)
format(coordsstring, sizeof(coordsstringB)
format(coordsstring, sizeof(coordsstringC)

---->

format(coordsstringA, sizeof(coordsstringA)
format(coordsstringB, sizeof(coordsstringC)
format(coordsstringC, sizeof(coordsstringC)
Reply
#4

Quote:
Originally Posted by Noliax8
Посмотреть сообщение
Hello,

format(coordsstring, sizeof(coordsstringA)
format(coordsstring, sizeof(coordsstringB)
format(coordsstring, sizeof(coordsstringC)

---->

format(coordsstringA, sizeof(coordsstringA)
format(coordsstringB, sizeof(coordsstringC)
format(coordsstringC, sizeof(coordsstringC)
I'll try
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)