[HELP] /stats in dialog
#1

I already test for 30 minutes, i'm still fail and error. some pro?

pawn Код:
format(coordsstring, sizeof(coordsstring),"%s - Level %d | %s | Age: %d | Wealth: $%d | PlayTime: %d | Number: %s | Warnings: %d",GetPlayerNameEx(targetid), level, sext, age, totalwealth, ptime, pnumber, warns);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Money: $%d | Bank: $%d | Points: %d | Armor: %.0f | Next level: %d/%d hours ($%d)", cash, account, upgradep, shealth, exp, expamount, costlevel);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstring), "%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(coordsstring), "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(coordsstring), "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(coordsstring), "Rope: %d | Cigars: %d | Sprunk: %d | Spray: %d | Screwdrivers: %d | VIP tokens: %d | Checks: %d | VIP: %s | Business: %s",rope,cigars,sprunk,spray, PlayerInfo[targetid][pScrewdriver],tokens,checks,drank, pBiz);
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        format(coordsstring, sizeof(coordsstring), "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);
        if (PlayerInfo[playerid][pAdmin] >= 2)
        {
            format(coordsstring, sizeof(coordsstring), "House: %d | House 2: %d | Renting: %d | Int: %d | VW: %d | Real VW: %d | Jail: %d sec | WJail: %d sec | AFK: %i", housekey,housekey2,rentkey,intir,vw,realvw,jailt,wjailt, playerAFKTime[targetid]);
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
        }
        if (PlayerInfo[playerid][pAdmin] >= 1337)
        {
            if(PlayerInfo[targetid][pAdmin] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
            {
                format(coordsstring, sizeof(coordsstring), "Accepted reports: %d | Trashed reports: %d", PlayerInfo[targetid][pAcceptReport], PlayerInfo[targetid][pTrashReport]);
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
            }
            if(PlayerInfo[targetid][pHelper] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
            {
                format(coordsstring, sizeof(coordsstring), "Hours on duty: %d | Accepted help requests: %d", PlayerInfo[targetid][pDutyHours], PlayerInfo[targetid][pAcceptedHelp]);
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,coordsstring);
            }
        }

    }
}
Reply
#2

Use :-
https://sampwiki.blast.hk/wiki/ShowPlayerDialog > Dialog Type : DIALOG_STYLE_MSGBOX.
Just use it like :-
pawn Код:
ShowPlayerDialog(playerid, stats,DIALOG_STYLE_MSGBOX,"Stats","Your stats here like : Age : %d,.... and then",age,"Close","");
Hope it will Help you.
Reply
#3

Does it will change if i'm level up or change somethings?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)