error 035: argument type mismatch
#7

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
take the space out of "player id" and make it "playerid"
There Are No Spaces With it... Its the cause of Italic font.


Quote:
Originally Posted by !R1Ch@rD!
Посмотреть сообщение
if you put it?

pawn Код:
CMD:oban(playerid,params[])
{
    new string[124], id, string1[124], reason[105];
    if(pInfo[playerid][pAdminLevel] < 2) return SCM(playerid, COLOR_LIGHTBLUE,"You are not authorized to use this command");
    if(sscanf(params, "rs[128]" id, reason)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /oban [Player Name] [Reason]");
    if(!fexist(string)) return SendClientMessage(playerid,-1,"This user account is not found in our database. Please re-check the username.");
    {
        format(string1, sizeof(string1), "%s has been Offline Banned by %s %s. [REASON: %s]", PlayerName(id),adminname,PlayerName(playerid),reason);
        SendClientMessageToAll(COLOR_LIGHTBLUE,string1);
        new INI:File = INI_Open(UserPath(id));
        INI_SetTag(File,"data");
        INI_WriteInt(File,"pBanned", 1);
        INI_WriteString(File,"pBanAdmin",adminname); //error line 7027
        INI_WriteString(File,"pBanReason",reason); //error line  7028
        INI_Close(File);
    }
    return 1;
}
I get what the name of the admin who I imagine ban may be so

pawn Код:
INI_WriteString(File,"pBanAdmin",PlayerName(playerid));
Im Confused idk why... can someone made a new oban command for me?
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)