OnPlayerCommandText
#1

Hello,
I'm currently working on a filterscript.
When I compile the FS it gives no errors/warning, but when I try the commands in game it just gives "Unknown command."
I tried even commenting all the 'guts' of OnPlayerCommandText and just print("debug");
but that wasn't happening too..
I'm testing it on bare gm so there would be no conflicts..

Any ideas where it could come from?
Reply
#2

Try to delete this from the top of your script
Код:
#include <zcmd>
then try and tell me
Reply
#3

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
Try to delete this from the top of your script
Код:
#include <zcmd>
then try and tell me
I'm not using zcmd, therefor the include isn't there
Reply
#4

Show me your code
Reply
#5

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
Show me your code
It's 4200 lines
The OnPlayerText Is 2200 lines.
The FS worked before but forsome reason it stopped.. and I can't reverse my changes.
Reply
#6

... I mean show me OnPlayerCommandText Code
Reply
#7

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
Show me your code
Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
... I mean show me OnPlayerCommandText Code
I'm Sending the pastebin link by pm.. just for you to know its 2200 lines..
Reply
#8

Check the server log if there any runtime errors? (like plugin missed etc etc)
Use crash detect for deeper debug and find your problem(remember compile the code in -d3 mode)
Reply
#9

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
Check the server log if there any runtime errors? (like plugin missed etc etc)
Use crash detect for deeper debug and find your problem(remember compile the code in -d3 mode)
found it! thank you!
thought crashdetect was only for server crashes

+Rep
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)