Is it possible? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is it possible? (
/showthread.php?tid=307302)
Is it possible? -
Outcast - 30.12.2011
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?
Re: Is it possible? -
diego_p11 - 30.12.2011
Yes it is, just make a lot of lines :P
Re: Is it possible? -
jamesbond007 - 30.12.2011
its possible.
https://sampwiki.blast.hk/wiki/Fread
Re: Is it possible? -
Outcast - 30.12.2011
Thank you.