SA-MP Forums Archive
error 035: argument type mismatch (argument 2) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 035: argument type mismatch (argument 2) (/showthread.php?tid=560821)



error 035: argument type mismatch (argument 2) - Barnwell - 30.01.2015

error 035: argument type mismatch (argument 2) what this error?
pawn Код:
CMD:frozen(playerid, params)
{
    LogCallback("frozen");
    new string[128];
    if(PlayerInfo[playerid][pAdmin] < 1)
    {
        SCM(playerid, COLOR_GREY, "** You're no authorized to use that command . ");
        return 1;
    }
    format(string, sizeof(string), "[ADMIN]: %s Has Checked For Muted Users Online.", GPN(playerid));
    ABroadCast(COLOR_LIGHTRED, string, 5);
    SCM(playerid, COLOR_GRAD3, "Frozen Users online:");
    foreach(Player, i)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pFrozen] == 1)
            {
                format(string, 256, "%s (%d)", GPN(i),i);
                SCM(playerid, COLOR_GRAD1, string);
            }
        }
    }
    LogCallback("frozen");
    return 1;
}
and 1 more CMD

pawn Код:
CMD:account(playerid, params)//545
{
    LogCallback("account");
    strmid(Typed[playerid], "None", 0, strlen("None"), 255);
    ShowServerDialog(playerid, 334,DIALOG_STYLE_PASSWORD, "Input your Password","Type your password below to confirm your identify as Account Owner","Ok","Cancel");
    LogCallback("account");
    return 1;
}



Re: error 035: argument type mismatch (argument 2) - CalvinC - 30.01.2015

That means you're using argument 2 wrongly in a function, where is it occuring?


Re: error 035: argument type mismatch (argument 2) - Barnwell - 30.01.2015

Код:
C:\Users\Gravelli\Desktop\SAMP-RP\gamemodes\SRP.pwn(45657) : error 035: argument type mismatch (argument 2)
C:\Users\Gravelli\Desktop\SAMP-RP\gamemodes\SRP.pwn(51753) : error 035: argument type mismatch (argument 2)



Re: error 035: argument type mismatch (argument 2) - CalvinC - 30.01.2015

Where are those lines in your script?