Code no work!
#1

Код:
#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
Reply
#2

Try opening the pawno folder and then opening pawno, clicking file and opening a new script.
Reply
#3

Ok, I will try that.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)