Help with a command.
#1

I made a command that when you write the command it will show you the kills logs which is stored as a INI file, now It doesn't work I don't know how to make the command read from the file, can any one check it ?
pawn Код:
if (strcmp(cmd, "/killlogs", true) ==0 )
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, string);
                    format(string, 256, "%s's Kill Record: %s", sendername);
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "Adminjail/%s.ini", sendername);
            new File: hFile = fopen(string, io_read);
            if (hFile)
            {
               
                return 1;
            }
Reply


Messages In This Thread
Help with a command. - by Scriptissue - 18.10.2010, 15:19
Re: Help with a command. - by LarzI - 18.10.2010, 15:28
Re: Help with a command. - by Scriptissue - 18.10.2010, 15:31
Re: Help with a command. - by Scriptissue - 18.10.2010, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)