Creating files from script in npcmodes folder
#1

Hello,

I think my question is clear. How can I create files in another folder such as npcmodes? I tried this;

pawn Code:
format(str,sizeof(str),"../npcmodes/%s.pwn",filename);
But I am unsure it works. Since server is crashing on this line...

pawn Code:
format(str,sizeof(str),"#define RECORDING \"%s\"",filename);
        print("8");
        fwrite(file,str);
... and this is the first write.

Jochem
Reply
#2

I think it only allows you to write in scriptfiles
Reply
#3

Not sure. That is why I am asking here.

Edit: It works when I write to scriptfiles itself. So it's not possible this way.

It should be able to do with a simple plugin, I think.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)