SA-MP Forums Archive
Question about including - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Question about including (/showthread.php?tid=559675)



Question about including - sw3das - 24.01.2015

Hello everybody!
I have kinda dumb question about including files.

Let's say I want to include "myFile.txt", which is in "assets" folder ( this folder is in my gamemode folder ).
Which way is better to use ?

No. 1: #include "assets/myFile.txt"
No. 2: #include "assets\myFile.txt"

I'm just curious if it's better to use '\' or '/' when typing the path to file.
Thanks in advance!


Re: Question about including - Ironboy - 24.01.2015

Is it that hard to use it from the include folder?


Re: Question about including - sw3das - 24.01.2015

Even if I do, I want to use folders for more organisation. And I'm only intrested in what slash should I use '\' or '/'.


Re: Question about including - Ironboy - 24.01.2015

Quote:
Originally Posted by sw3das
Посмотреть сообщение
Even if I do, I want to use folders for more organisation. And I'm only intrested in what slash should I use '\' or '/'.
Forward slash " / "


Re: Question about including - sw3das - 24.01.2015

Thanks!