reports command problem and help
#1

This command works but it shows all reports i only want to show last 5 reports

Код:
CMD:reports(playerid,params[])
{
	new string[512];
	if(PInfo[playerid][Level] < 1)
    return SendClientMessage(playerid,STEALTH_BLUE,"You need to be level 1 to check reports.");
   	new File:rFile;
    rFile = fopen("Reports/Report.txt",io_read);
    while(fread(rFile,string,sizeof string, false))
    {
        format(string,sizeof(string),"%s",string);
		SendClientMessage(playerid,COLOR_MENUHIGHLIGHT,string);
    }
	fclose(rFile);
	return 1;
}
Reply


Messages In This Thread
reports command problem and help - by Nabster - 05.03.2015, 14:07
AW: reports command problem and help - by Kaliber - 05.03.2015, 14:39
Re: reports command problem and help - by Nabster - 05.03.2015, 15:05
AW: reports command problem and help - by Kaliber - 05.03.2015, 15:10
Re: reports command problem and help - by Nabster - 05.03.2015, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)