30.12.2011, 00:21
Is it possible to have unlimited number of lines in a userfile (MDC system), and every time the file is read, it would SendClientMessage for every line?
Like: /mdc add John Doe
*John_Doe.txt is created*
/mdc add crime John Doe Loitering
*A line stating the time and crime name would be added to the John_Doe.txt*
/mdc view John_Doe
*John Doe ----------*
*Crimes-------------*
*[22/12/2011 15:32:12] Loitering*
So basically, how to loop and read every line and show it?
Like: /mdc add John Doe
*John_Doe.txt is created*
/mdc add crime John Doe Loitering
*A line stating the time and crime name would be added to the John_Doe.txt*
/mdc view John_Doe
*John Doe ----------*
*Crimes-------------*
*[22/12/2011 15:32:12] Loitering*
So basically, how to loop and read every line and show it?