error 035: argument type mismatch
#10

pawn Код:
CMD:oban(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        new targetname[24], filestring[79];
        if(sscanf(params, "s[24]", targetname)) return SendClientMessage(playerid, -1, "Usage: /oban [Player Name]");
        format(filestring, sizeof(filestring), "/Users/%s.ini", targetname);
        if(!fexist(filestring)) return SendClientMessage(playerid, COLOR_RED, "Error: Incorrect player/name.");
        else
        {
            new INI:File = INI_Open(filestring);
            INI_SetTag(File, "data");
            INI_WriteInt(File, "Banned", 1);
            INI_Close(File);
            new done[128];
            format(done, sizeof(done), "You have banned %s", targetname);
            SendClientMessage(playerid,-1 , done);
        }
    }
    else SendClientMessage(playerid, -1, "SERVER: Unknown command.");
    return 1;
}
This is my oban..
Reply


Messages In This Thread
error 035: argument type mismatch - by XGreen - 08.10.2014, 03:08
Re: error 035: argument type mismatch - by Crayder - 08.10.2014, 03:27
Re: error 035: argument type mismatch - by XGreen - 08.10.2014, 03:40
Re: error 035: argument type mismatch - by XGreen - 08.10.2014, 03:43
Re: error 035: argument type mismatch - by (SF)Noobanatior - 08.10.2014, 05:12
Respuesta: error 035: argument type mismatch - by !R1Ch@rD! - 08.10.2014, 05:23
Re: Respuesta: error 035: argument type mismatch - by XGreen - 08.10.2014, 13:53
Re: error 035: argument type mismatch - by AndySedeyn - 08.10.2014, 13:55
Re: error 035: argument type mismatch - by denNorske - 08.10.2014, 14:12
Re: error 035: argument type mismatch - by Rudy_ - 08.10.2014, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)