How to close dini file?
#1

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?
Reply
#2

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

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)