filescripts error
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)