SA-MP Forums Archive
OnPlayerCommandText - 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: OnPlayerCommandText (/showthread.php?tid=625332)



OnPlayerCommandText - DeaDEnD - 31.12.2016

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?


Re: OnPlayerCommandText - MarkNelson - 31.12.2016

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


Re: OnPlayerCommandText - DeaDEnD - 31.12.2016

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


Re: OnPlayerCommandText - MarkNelson - 31.12.2016

Show me your code


Re: OnPlayerCommandText - DeaDEnD - 31.12.2016

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.


Re: OnPlayerCommandText - MarkNelson - 31.12.2016

... I mean show me OnPlayerCommandText Code


Re: OnPlayerCommandText - DeaDEnD - 31.12.2016

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


Re: OnPlayerCommandText - SyS - 31.12.2016

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)


Re: OnPlayerCommandText - DeaDEnD - 31.12.2016

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