SA-MP Forums Archive
Reading Files and storing into an Array - 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: Reading Files and storing into an Array (/showthread.php?tid=480813)



Reading Files and storing into an Array - Deduction - 12.12.2013

How can I setup a script which reads from a file and adds it to an array.
For example, I have the text Deduction|TestUser|So_On|AndSo_On| in a file.
How can I store it to an array like PlayerInfo[playerid][Friend][0], PlayerInfo[playerid][Friend][1] and such.
There will be more people in the list so I won't be able to create it manually, so how can I have it done automatically.