Scripting Compile Errors
#3

Quote:
Originally Posted by Feastahashi
Посмотреть сообщение
pawn Код:
CMD:offlineban(playerid,params[])
{
    new string[124],string1[124],giveplayername[24];
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
        if(sscanf(params, "s", giveplayername)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /offlineban [full name(case sensative)]"); return 1; }
        format(string,sizeof(string),"/Users/%s.ini",giveplayername);
        if(fexist(string))
        {
            new INI:File; File = INI_Open(string);
            INI_SetTag(File,"data");
            INI_WriteInt(File,"Banned",1);
            INI_Close(File);
            format(string1, sizeof(string1), "* You have sucessfully offline-banned %s from the server.", giveplayername);
            SendClientMessage(playerid,COLOR_YELLOW,string1);
        }
        else SendClientMessage(playerid, COLOR_GRAD2, "Invalid player name specified in the database !");
    }
    else SendClientMessage(playerid, COLOR_GRAD2, NOTADMIN);
    return 1;
}
Please describe to him what was wrong in the code then only he can understand and use in future
Reply


Messages In This Thread
Scripting Compile Errors - by JustinAn - 30.12.2012, 19:49
Re: Scripting Compile Errors - by Feastahashi - 30.12.2012, 19:52
Re: Scripting Compile Errors - by RedCrossER - 30.12.2012, 19:57
Re: Scripting Compile Errors - by JustinAn - 30.12.2012, 20:19

Forum Jump:


Users browsing this thread: 1 Guest(s)