18.10.2010, 15:19
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;
}