Creating an offline admin ban
#1

Hi. I've tried to make an offline admin ban (ban someone by "username" even that username doesn't exist, which inserts into mysql) but it gives me this errors
PHP код:

 error 035
argument type mismatch (argument 1)
 
error 035argument type mismatch (argument 1


PHP код:
MD:offlinetban(playeridparams[])
{
    if(
pInfo[playerid][pAdminLevel] >= 2)
    {
        new 
ban_target2[24], string[128];
          if(
sscanf(params"s[24]"ban_targetban_timeban_reason)) return SendClientMessage(playerid, -1,""COL_RED"AdmCmds: /offlineban [Nickname] [Days] [Reason]");
        
format(stringsizeof(string),"*COL_RED*""%s %s has banned %s for %i days [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),ban_targetban_timeban_reason);
        
SendClientMessageToAll(-1string);
        
jBan(ban_target2playeridban_reasonban_time1);
    }
    else {
        
SendClientMessage(playerid,-1,""COL_RED"EROARE: U aint admin!");
    }
    return 
1;
}
CMD:offlineban(playeridparams[])
{
    if(
pInfo[playerid][pAdminLevel] >= 2)
    {
        new 
ban_target3[24], string[128];
        if(
sscanf(params"s[24]"ban_target3)) return SendClientMessage(playerid, -1,""COL_RED"AdmCmds: /offlineban [Nickname]");
        
format(stringsizeof(string), ""COL_RED"AdmCmds: %s %s  has  permanent  banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),ban_target3ban_reason);
        
SendClientMessageToAll(-1string);
        
jBan(ban_target3playeridban_reason01);
    }
    else {
        
SendClientMessage(playerid,-1,""COL_RED"EROARE: U aint admin");
    }
    return 
1;

It gives me argument mismatch at "jBan"
Reply


Messages In This Thread
Creating an offline admin ban - by Zeus666 - 18.09.2018, 16:19
Re: Creating an offline admin ban - by solstice_ - 18.09.2018, 16:28
Re: Creating an offline admin ban - by Zeus666 - 18.09.2018, 16:29
Re: Creating an offline admin ban - by solstice_ - 18.09.2018, 16:31
Re: Creating an offline admin ban - by NaS - 19.09.2018, 01:12

Forum Jump:


Users browsing this thread: 1 Guest(s)