[Possible Bug]NPC Scripts can't write or read files
#1

I don't know if this is a Bug or only my fault

Since 0.3a was released I didn't noticed it.
I want to write a special way to communicate between the GM and the NPC Scripts.

So I tried making it possible with files on a simple way - writing in the files - for debuging.
But it didn't work.

I tried it serveral times, I didn't get it working.


This is my code. I put it in all Callbacks which could be possible called.
pawn Код:
new File:f = fopen("C:\\Users\\septa_000\\Desktop\\03x\\scriptfiles\\blubb.txt",io_write);
fwrite(f,"blubb");
fclose(f);
f = fopen("blubb2.txt",io_write);
fwrite(f,"blaa");
fclose(f);
Reply
#2

Thanks, for the answer,
but it isn't working for me
Reply
#3

I don't think you need to put ""C:\\Users\\septa_000\\Desktop\\03x\\scriptfiles\ \blubb.txt",io_write);"

just /blubb.txt
Reply
#4

I know, I was just testing arround.

As you can see in my code I was trying it, to do this only with blubb2.txt
Reply
#5

Any response on this problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)