Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Help me out with this cmd

$
0
0
Code:

CMD:oban(playerid,params[])
{
        new string[50],string1[50];
        if(isnull(params)) return SendClientMessage(playerid,"/oban [playername]");
        format(string,sizeof(string),"Users/%s.ini",params);
    if(fexist(string))
    {
        new INI:file = INI_Open(string);
        INI_WriteInt(file,"Banned",1);
        INI_Close(file);
        format(string1,sizeof(string1),"has offline banned %s.",params);
        SendClientMessage(playerid,-1,string1);
    }
    else SendClientMessage(playerid,-1,"Account not found");
    return 1;
}

Error's
Code:

error 035: argument type mismatch (argument 2)
if there is a better offline banned cmd send it to me plz

Viewing all articles
Browse latest Browse all 18226

Trending Articles