05.03.2015, 15:05
Код:
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 = fopen("Reports/Report.txt",io_read),counter,i; while(fread(rFile,string)) counter++; fclose(rFile),rFile=fopen("Reports/Report.txt",io_read); while(fread(rFile,string,sizeof string, false)) counter++; { if(i >= (counter-0x5)) format(string,sizeof(string),"%s",string); SendClientMessage(playerid,COLOR_MENUHIGHLIGHT,string); i++; } fclose(rFile); return 1; }