27.01.2014, 19:53
Try This:
Tell me if you got any errors
pawn Код:
new string2[2000], coordsstring[2000];
format(string2, sizeof(string2),"%s - Level %d | %s | Age: %d | Total wealth: $%d | Playing hours: %d | Phone number: %s | RP Skill: %d\n",GetPlayerNameEx(targetid), level, sext, age, totalwealth, ptime, pnumber, rpskill);
format(coordsstring, sizeof(coordsstring), "Cash: $%d | Bank balance: $%d | Upgrade points: %d | Spawn armor: %.0f | Next level: %d/%d hours ($%d)\n", cash, account, upgradep, shealth, exp, expamount, costlevel);
strcat(string2,coordsstring);
format(coordsstring, sizeof(coordsstring), "%s: %s | Rank: %s (%d) | Division: %s | Job: %s (level: %d) | Job 2: %s (level: %d)\n", facfam, employer, rank, PlayerInfo[targetid][pRank], division, jtext,jlevel,jtext2, jlevel2);
strcat(string2,coordsstring);
format(coordsstring, sizeof(coordsstring), "Crimes: %d | Arrests: %d | Insurance: %s | Wanted level: %d | Health: %.1f | Armor: %.1f | Paintball Tokens: %d\n",crimes,arrests,insur, wanted, health, armor, ptokens);
strcat(string2,coordsstring);
format(coordsstring, sizeof(coordsstring), "Married to: %s | Biggest fish: %d | Pot: %d | Crack: %d | Packages: %d | Crates: %d | Radio frequency: %d mhz\n",married,bigfish,pot,crack,packages,crates, radiofreq);
strcat(string2,coordsstring);
format(coordsstring, sizeof(coordsstring), "Materials: %d | Rope: %d | Rag: %d | Cigars: %d | Sprunk: %d | Spray: %d | Screwdrivers: %d | VIP tokens: %d | Checks: %d | VIP: %s\n",mats,rope,rag,cigars,sprunk,spray, PlayerInfo[targetid][pScrewdriver],tokens,checks,drank);
strcat(string2,coordsstring);
format(coordsstring, sizeof(coordsstring), "OOCMutes: %d | ADMutes: %d | NMutes: %d | RMutes: %d | Weapons Restricted: %d | Gang Warns: %d | Warnings: %d\n", oocmutes, admutes, nmutes, PlayerInfo[targetid][pRMutedTotal],PlayerInfo[targetid][pWRestricted], PlayerInfo[targetid][pGangWarn], warns);
strcat(string2,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\n", housekey,housekey2,rentkey,intir,vw,realvw,jailt,wjailt, playerAFKTime[targetid]);
strcat(string2,coordsstring);
}
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(PlayerInfo[targetid][pHelper] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
{
format(coordsstring, sizeof(coordsstring), "Hours on duty: %d | Accepted help requests: %d\n", PlayerInfo[targetid][pDutyHours], PlayerInfo[targetid][pAcceptedHelp]);
strcat(string2,coordsstring);
}
}
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Stats",string2,"Close","");
}
}