SA-MP Forums Archive
Delay when including a script - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Delay when including a script (/showthread.php?tid=141513)



Delay when including a script - HB - 13.04.2010

I use multiple includes to make my GM file look much nicer. Also, more organised.

When using this code, I think there is something wrong:
Код:
#include "test.pwn"
When you script something in test.pwn, save it, upload it, and restart the server completely it looks like the changes aren't saved.. I do save in the correct location.

I upload that script to the 'include' folder on the server. How comes the changes aren't made when I upload the edited part?


Re: Delay when including a script - Hiddos - 13.04.2010

As far as I know, you can't include .pwn files, only .inc files. Correct me if I'm wrong.


Re: Delay when including a script - HB - 14.04.2010

Quote:
Originally Posted by Hiddos
As far as I know, you can't include .pwn files, only .inc files. Correct me if I'm wrong.
You're wrong, it is possible to include ".pwn" files, why else did it work before?


Re: Delay when including a script - Thrarod - 14.04.2010

Код:
#include "../include/test.pwn"
Works?