Unban command
#3

I still have one error.
Code:
C:\Users\Tannos\Desktop\My server\gamemodes\cod.pwn(11450) : warning 213: tag mismatch
C:\Users\Tannos\Desktop\My server\gamemodes\cod.pwn(11451) : error 035: argument type mismatch (argument 1)
C:\Users\Tannos\Desktop\My server\gamemodes\cod.pwn(11452) : warning 202: number of arguments does not match definition
C:\Users\Tannos\Desktop\My server\gamemodes\cod.pwn(11450) : warning 204: symbol is assigned a value that is never used: "file"
C:\Users\Tannos\Desktop\My server\gamemodes\cod.pwn(11445) : warning 204: symbol is assigned a value that is never used: "string1"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Code:
CMD:unban(playerid,params[])
{
    new string[124],string1[124];
    if(isnull(params)) return SendClientMessage(playerid, red, "/unban [playername]");
    format(string,sizeof(string),"Users/%s.ini",params);
    if(fexist(string))
    {
        new INI:file = INI_Open(string);
        INI_WriteInt(file,"Banned",0); //this is the error line..
        INI_Close(file);
    }
    else SendClientMessage(playerid,-1,"Account not found");
    return 1;
}
Reply


Messages In This Thread
Unban command - by Droxx - 31.05.2017, 11:10
Re: Unban command - by coool - 31.05.2017, 12:16
Re: Unban command - by Droxx - 31.05.2017, 14:57
Re: Unban command - by Droxx - 31.05.2017, 18:24
Re: Unban command - by JasonRiggs - 31.05.2017, 18:28
Re: Unban command - by Droxx - 31.05.2017, 18:29
Re: Unban command - by JasonRiggs - 31.05.2017, 18:32
Re: Unban command - by Droxx - 31.05.2017, 18:45
Re: Unban command - by Sumit4 - 31.05.2017, 18:54
Re: Unban command - by Droxx - 31.05.2017, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)