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

some people said that i will use strcat so i used it, but it give's me warning i tried to fix it, but i cant

Error
pawn Код:
(10291) : error 035: argument type mismatch (argument 3)
(10292) : error 035: argument type mismatch (argument 3)
(10293) : error 035: argument type mismatch (argument 3)
(10295) : error 035: argument type mismatch (argument 3)
Line
pawn Код:
10292: strcat(string,"Army: %s", ArmyString);
10293: strcat(string, "CIA: %s", CIAString);
10294: strcat(string, "Regular Player: %s", RegularString);
10296: strcat(string, "Jailtime: %d", JailTimeString);
Command
pawn Код:
dcmd_stats(playerid,params[])
{
    #pragma unused params
    new string[256], JailTimeString[256], ArmyString[256], CIAString[256], RegularString[256];

    if(CanUseArmy[playerid] == 1337)
    {
        format(ArmyString, sizeof(ArmyString), "Yes");
    }
    else
    {
        format(ArmyString, sizeof(ArmyString), "No");
    }

    if(CanUseCIA[playerid] == 1337)
    {
        format(CIAString, sizeof(CIAString), "Yes");
    }
    else
    {
        format(CIAString, sizeof(CIAString), "No");
    }

    if(IsRegularPlayer[playerid] == 1337)
    {
        format(RegularString, sizeof(RegularString), "Yes");
    }
    else
    {
        format(RegularString, sizeof(RegularString), "No");
    }

    if(JailTime[playerid] >= 1)
    {
        format(JailTimeString, sizeof(JailTimeString), "%d", JailTime[playerid]);
    }*
    else
    {
    //Do Nothing
    }
    strcat(string,"Army: %s", ArmyString);
    strcat(string, "CIA: %s", CIAString);
    strcat(string, "Regular Player: %s", RegularString);
    strcat(string, "Admin Level:%d", AdminLevel[playerid]);
    strcat(string, "Jailtime: %d", JailTimeString);
    strcat(string, "Wanted Level: %d", GetPlayerWantedLevel(playerid));
    strcat(string, "C4 Packs: %d", HasC4[playerid]);
    strcat(string, "Ropes: %d", HasRope[playerid]);
    strcat(string, "Cash: $%d", GetPlayerMoney(playerid));
    strcat(string, "BankCash: $%d", BankCash[playerid]);
    strcat(string, "Rob Level: %d", RobSkill[playerid]);
    strcat(string, "Terrorist Level: %d", TerroristSkill[playerid]);
    strcat(string, "Heroin Injections: %d", HasHeroin[playerid]);
    strcat(string, "Weed Grams: %d", HasWeed[playerid]);
    ShowPlayerDialog(playerid, DIALOG_COMMANDS, DIALOG_STYLE_MSGBOX, "Status", string, "Close", "");
    return 1;
}
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: 4 Guest(s)