SA-MP Forums Archive
How to close dini file? - 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: How to close dini file? (/showthread.php?tid=298036)



How to close dini file? - HondaCBR - 19.11.2011

I have file which opens, how can i close this file after? I was trying fclose(file) but it was giving me an error

pawn Код:
new file[256], name[24];
GetPlayerName(playerid, name, 24);
format(file,sizeof(file),"Cars/%s.ini",name);
if(dini_Exists(file))
any ideas?


Re: How to close dini file? - Calgon - 19.11.2011

If you're using Dini, it opens and closes it for you automatically.


Re: How to close dini file? - HondaCBR - 19.11.2011

can you look at my other post then, i have /spawn /unspawn /park commands and basically when i use /unspawn and /spawn the car doesnt go to the /park position it goest to the postion where it was when you left the game, i thought it might been because the file isnt closed but as dini closes it self then idk, any ideas?