SA-MP Forums Archive
filescripts error - 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: filescripts error (/showthread.php?tid=542373)



filescripts error - GabiXx - 18.10.2014

When i make a command in pawno and i put it in filescript and i add it in server.cfg at filescript, it doesn't work.
For example:
I try this
CMD:heal(playerid, params[])
{
SetPlayerHealth(playerid, 100);
return 1;
}

I put this in filterscripts folder, after i added this in server.cfg and when i connect to sv and i use /heal i get "unknow command" message.


Re: filescripts error - Kaperstone - 18.10.2014

Pawn*
Pawno is the editor, Pawn is the compiler, pawncc is the compiler

Do you have the required include in proper place ?
After you compiler, did it create an .amx file ? e.g. FS_NAME.pwn => after compile => FS_NAME.amx
Make sure there is .amx file in the fitlerscript folder.

If your code return errors then it means the compile failed and therefore, it cannot produce a working .amx file.

PAWN shows you the errors in the mini-window which opens once you press the compile button/key.


Re: filescripts error - Abagail - 19.10.2014

This can happen when you fail to have a plug-in and or resource the script depends on. If this is the case, nothing will work on that filterscript. Try using a blank filterscript with only what you need, and it should work. For example,


pawn Код:
#include a_samp
#include zcmd

CMD:heal(playerid, params[]) { return SetPlayerHealth(playerid, 100); }
If it's not working then I'd recommend you re-download the latest SA-MP package.