Argument mismatch 1 and 2 on same line
#1

So im getting arguments mismatch 1 and 2 on the same line....

Here is the command

pawn Код:
command(remotewarn, playerid, params[])
{
    new pName, name[128], reason[128], string[128];
    if(sscanf(params, "ds", name, reason))
    {
        if(Player[playerid][AdminLevel] >= 5)
        {
            SendClientMessage(playerid, WHITE, "SYNTAX: /remotewarn [name] [reason]");
        }
    }
    else
    {
        if(Player[playerid][AdminLevel] >= 5)
        {
            GetPlayerName(name, pName, sizeof(pName));
            format(string, sizeof(string), "Accounts/%s.ini", name);

            if(fexist(string))
            {
                if(strcmp(Player[pName][Warning1], "None", true) == 0)
                {
                    SendClientMessage(playerid, WHITE, "You can't prison a higher level administrator (or equal to your rank).");
                }
                else
                {
                    SendClientMessage(playerid, WHITE, "dfhgkfjd");
                }
            }
            else
            {
                SendClientMessage(playerid, WHITE, "Account not found.");
            }
        }
    }
}
And the error is on

pawn Код:
GetPlayerName(name, pName, sizeof(pName));
Please help

Thanks
Reply


Messages In This Thread
Argument mismatch 1 and 2 on same line - by Euan Hughes - 21.08.2012, 09:44
Re: Argument mismatch 1 and 2 on same line - by [MWR]Blood - 21.08.2012, 09:57
Re: Argument mismatch 1 and 2 on same line - by Euan Hughes - 21.08.2012, 10:02
Re: Argument mismatch 1 and 2 on same line - by [MWR]Blood - 21.08.2012, 10:06
Re: Argument mismatch 1 and 2 on same line - by Euan Hughes - 21.08.2012, 10:09

Forum Jump:


Users browsing this thread: 1 Guest(s)