OnPlayerCommandText not performed?
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    print("execed1");
    if(strcmp("/tpse", cmdtext, true, 10) == 0) {
        print("execed2");
        if(GetPVarInt(playerid,"LoggedIn") == 0 && !IsPlayerAdmin(playerid)) {
            print("execed3");
            return DialogLogin(playerid);
        } else {
            print("execed4");
            return DialogMenu(playerid);
        }
        print("execed5");
        return 1;
    }
    print("execed6");
    return 0;
}
That's all. I have all the stocks, the PVars, but I don't get any of the execed, and I get "SERVER: Unknown Command.".
Wtf?

P.S.: This is a filterscript. I tried to reload it too..
Reply
#2

Yes, in my GM and in my Admin FS.
Reply
#3

I tried to unload & reload both filterscript. Are you pointing at OnCommandRecieved?
Reply
#4

What ****** means is, if you are using ZCMD with filerscript you having problem with.
That's why it shows you the message; "SERVER: Unknown command"
Reply
#5

Zcmd disables the OnPlayerCommandText callback
Reply
#6

Thank you, now I get it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)