SA-MP Forums Archive
A scripting problem. - 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)
+--- Thread: A scripting problem. (/showthread.php?tid=651320)



A scripting problem. - midgetgamer - 18.03.2018

So, I am new to scripting and I am making my own gamemode, but when I install the plugins and the includes I need, and then adding them to my gamemode, I can't compile the .pwn file. Is there a way I can fix it. The error is
Quote:

fatal error 100: cannot read from file: "zcmd"

And it happens with all plugins and includes, for example sscanf2, not only zcmd


Re: A scripting problem. - kovac - 18.03.2018

Put this at the top of your gamemode so the compiler can read from it, and make sure you have zcmd.inc and sscanf2.inc in your pawno/includes directory.
PHP код:
#include <zcmd> 
and for sscanf2

PHP код:
#include <sscanf2> 



Re: A scripting problem. - midgetgamer - 18.03.2018

I do have them, and they are working, but for some reason I can't compile it, and I have tested them with a filterscript and they work perfectly.


Re: A scripting problem. - kovac - 18.03.2018

Quote:
Originally Posted by midgetgamer
Посмотреть сообщение
I do have them, and they are working, but for some reason I can't compile it, and I have tested them with a filterscript and they work perfectly.
Do you have more than one server? Make sure that you you're launching pawno from the same server directory.


Re: A scripting problem. - midgetgamer - 18.03.2018

Thank you, that was the problem. I am sorry for wasting your time. P.S: +Rep