21.09.2013, 08:09
Here is my /stats, it's doesnt show at all stats, it's only slow half of it.
It's only show until this line only
pawn Код:
new coordsstring[128], statsstring[1024];
format(coordsstring, sizeof(coordsstring),"%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);
strcat(statsstring, coordsstring);
format(coordsstring, sizeof(coordsstring), "\nCash: $%d • Bank balance: $%d • Upgrade points: %d • Spawn armor: %.0f • Next level: %d/%d hours ($%d)", cash, account, upgradep, shealth, exp, expamount, costlevel);
strcat(statsstring, coordsstring);
format(coordsstring, sizeof(coordsstring), "\n%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);
strcat(statsstring, coordsstring);
format(coordsstring, sizeof(coordsstring), "\nCrimes: %d • Arrests: %d • Insurance: %s • Wanted level: %d • Health: %.1f • Armor: %.1f • Paintball Tokens: %d",crimes,arrests,insur, wanted, health, armor, ptokens);
strcat(statsstring, coordsstring);
format(coordsstring, sizeof(coordsstring), "\nMarried to: %s • Biggest fish: %d • Pot: %d • Crack: %d • Packages: %d • Crates: %d • Radio frequency: %d khz",married,bigfish,pot,crack,packages,crates, radiofreq);
strcat(statsstring, coordsstring);
format(coordsstring, sizeof(coordsstring), "\nMaterials: %d • Rope: %d • Cigars: %d • Sprunk: %d • Spray: %d • Screwdrivers: %d • VIP tokens: %d • Checks: %d • VIP: %s",mats,rope,cigars,sprunk,spray, PlayerInfo[targetid][pScrewdriver],tokens,checks,drank);
strcat(statsstring, coordsstring);
format(coordsstring, sizeof(coordsstring), "\nADMutes: %d • NMutes: %d • RMutes: %d • Weapons Restricted: %d • Gang Warns: %d • EXP Hours: %d v Biz Key: %d", admutes, nmutes, PlayerInfo[targetid][pRMutedTotal],PlayerInfo[targetid][pWRestricted], PlayerInfo[targetid][pGangWarn], PlayerInfo[targetid][pDoubleEXP], PlayerInfo[targetid][pBiz]);
strcat(statsstring, coordsstring);
ShowPlayerDialog(playerid, 5234, DIALOG_STYLE_MSGBOX, "Your stats:", statsstring, "Close", "");
{
format(coordsstring, sizeof(coordsstring),"\nHouse: %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]);
strcat(statsstring, coordsstring);
}
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(PlayerInfo[targetid][pAdmin] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
{
format(coordsstring, sizeof(coordsstring),"\nAccepted reports: %d • Trashed reports: %d", PlayerInfo[targetid][pAcceptReport], PlayerInfo[targetid][pTrashReport]);
strcat(statsstring, coordsstring);
}
if(PlayerInfo[targetid][pHelper] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
{
format(coordsstring, sizeof(coordsstring),"\nHours on duty: %d • Accepted help requests: %d", PlayerInfo[targetid][pDutyHours], PlayerInfo[targetid][pAcceptedHelp]);
strcat(statsstring, coordsstring);
pawn Код:
format(coordsstring, sizeof(coordsstring), "\nADMutes: %d • NMutes: %d • RMutes: %d • Weapons Restricted: %d • Gang Warns: %d • EXP Hours: %d v Biz Key: %d", admutes, nmutes, PlayerInfo[targetid][pRMutedTotal],PlayerInfo[targetid][pWRestricted], PlayerInfo[targetid][pGangWarn], PlayerInfo[targetid][pDoubleEXP], PlayerInfo[targetid][pBiz]);
strcat(statsstring, coordsstring);