SA-MP Forums Archive
How does open file work. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How does open file work. (/showthread.php?tid=77603)



How does open file work. - typedef - 12.05.2009

I am familiar with the Open File, read file, And write file in C++ not in this language, could someone explain just with maby a simple example like for Example a freeze commands, it would be


new playerlist[]

OnConnect()
{

playerlist[playername]

fopen(Players.txt) /// There would be like a number in their somewhere be like a 9, and it would stand for Frozen JOB name bankcash cash adminfreeze
if(playerguid == 9) /// Frozen
{
code
}

Then it would be like frozen, but how would it move over and check the numbers and how would it open the file?







Re: How does open file work. - MenaceX^ - 12.05.2009

https://sampwiki.blast.hk/wiki/Scripting...ions_Old#fopen