10.02.2013, 10:59
You need to use format, strcat just adds two strings together
pawn Код:
dcmd_stats(playerid, unused[]) {
#pragma unused unused
static const
NoYes[][] = { "No", "Yes" },
form[] = "\
Army: %s\n\
CIA: %s\n\
Regular Player: %s\n\
Admin Level: %d\n\
Jailtime: %d\n\
Wanted Level: %d\n\
C4 Packs: %d\n\
Ropes: %d\n\
Cash: $%d\n\
BankCash: $%d\n\
Rob Level: %d\n\
Terrorist Level: %d\n\
Heroin Injections: %d\n\
Weed Grams: %d"
;
new
string[512]
;
format(string, sizeof string, form
, NoYes[(CanUseArmy[playerid] == 1337)]
, NoYes[(CanUseCIA[playerid] == 1337)]
, NoYes[(IsRegularPlayer[playerid] == 1337)]
, AdminLevel[playerid]
, JailTime[playerid]
, GetPlayerWantedLevel(playerid)
, HasC4[playerid]
, HasRope[playerid]
, GetPlayerMoney(playerid)
, BankCash[playerid]
, RobSkill[playerid]
, TerroristSkill[playerid]
, HasHeroin[playerid]
, HasWeed[playerid]
);
return ShowPlayerDialog(playerid, DIALOG_COMMANDS, DIALOG_STYLE_MSGBOX, "Status", string, "Close", "");
}