Can't use command in FS
#2

You cant put that function under OnFilterScriptInit.. do it like this:
pawn Код:
public OnFilterScriptInit()
{
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" ");
    print("----------------------------------\n");
}

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/test", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid,0);
        SendClientMessage(playerid,0xF00E69FF, "TEST");
        return 1;
    }
    return 0;
}
Weird that you have 2200+ posts and cant do this.
Reply


Messages In This Thread
Can't use command in FS - by davve95 - 01.09.2012, 19:12
Re: Can't use command in FS - by Dan. - 01.09.2012, 19:14
Re: Can't use command in FS - by Admigo - 01.09.2012, 19:14
Re: Can't use command in FS - by davve95 - 01.09.2012, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)