HDD-delay-safe fwrite in C++ (need help for RNPC)
#8

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
http://stackoverflow.com/questions/8...te-to-the-file

Check the answer by Ben Voigt (Accepted one)
Locking the files is a nice idea, but it needs to be checked how samp-npc treats locks. I guess it wont wait for unlock, but just denies the access (and so probably crashes like it does when the file doesnt exist). But if it works correctly this would safe a lot of inter-script communication and would be the perfect addition to the "check files in a thread" solution. Ill test that.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)