Code no work! - 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: Code no work! (
/showthread.php?tid=601499)
Code no work! -
NumerousSpaces - 22.02.2016
Код:
#include <a_samp>
#if defined FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/command", cmdtext, true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW,"It is Working");}
return 1;}
#endif
I am brand new to scripting, So please forgive me. Heres what I want it to do:
When I type /command I want it to bring up A message saying that the command is working (in yellow)
I get no errors.
I put it in the server.cfg
Re: Code no work! -
[eLg]elite - 22.02.2016
Try opening the pawno folder and then opening pawno, clicking file and opening a new script.
Re: Code no work! -
NumerousSpaces - 22.02.2016
Ok, I will try that.
Re: Code no work! -
Sew_Sumi - 22.02.2016
It's because you haven't defined FILTERSCRIPT.
None of that code will be executed because it's inside the condition.
Define FILTERSCRIPT, or remove the #if and #else lines.