Argument Type Mismatch
#1

Код:
CMD:unban(playerid, params[])
{
    new targetname[24], filestring[79];
    if(sscanf(params, "s[24]", targetname)) return SendClientMessage(playerid, TOMATO, "[USAGE]: {FFFFFF}/unban [Player's Name]");
    format(filestring, sizeof(filestring), "/Users/%s.ini", targetname);
    if(!fexist(filestring)) return SendClientMessage(playerid, RED, "[ERROR]: {FFFFFF}Player name not found in database.");
    else
    {
    new INI: 
    File = INI_Open(UserPath(filestring));
    INI_SetTag(File, "data");
    INI_WriteInt(File, "Banned", 0);
    INI_Close(File);
    new done[128];
    format(done, sizeof(done), "[UNBAN]: {FFFFFF}You have unbanned the account %s", targetname);
    SendClientMessage(playerid,GREEN , done);
    }
    return 1;
}
Trying to make an offline unban command but get this error

Код:
error 035: argument type mismatch (argument 1)
Reply


Messages In This Thread
Argument Type Mismatch - by Uvais - 02.11.2017, 16:03
Re: Argument Type Mismatch - by iDayZ - 02.11.2017, 16:08
Re: Argument Type Mismatch - by Lokii - 02.11.2017, 16:16
Re: Argument Type Mismatch - by Uvais - 03.11.2017, 04:24
Re: Argument Type Mismatch - by Uvais - 03.11.2017, 04:26

Forum Jump:


Users browsing this thread: 2 Guest(s)