error 035: argument type mismatch (argument 3)
#5

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", "");
}
Reply


Messages In This Thread
error 035: argument type mismatch (argument 3) - by Patrick - 10.02.2013, 09:24
Re: error 035: argument type mismatch (argument 3) - by sscarface - 10.02.2013, 09:34
Re: error 035: argument type mismatch (argument 3) - by Patrick - 10.02.2013, 09:35
Re: error 035: argument type mismatch (argument 3) - by Patrick - 10.02.2013, 10:52
AW: error 035: argument type mismatch (argument 3) - by Nero_3D - 10.02.2013, 10:59
Re: error 035: argument type mismatch (argument 3) - by Patrick - 10.02.2013, 11:07

Forum Jump:


Users browsing this thread: 1 Guest(s)