[HELP]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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]OnPlayerCommandText(): (
/showthread.php?tid=202145)
[HELP]OnPlayerCommandText(): -
Kastranova - 23.12.2010
After I changed the server to 0.3c All my commands in OnPlayerCommandText() don't work. The server says they are unknown. Can someone please help me out
Re: [HELP]OnPlayerCommandText(): -
Kwarde - 23.12.2010
Did you re-compile the script?
Re: [HELP]OnPlayerCommandText(): -
Kastranova - 23.12.2010
Yes..., I have no idea where it comes from
Re: [HELP]OnPlayerCommandText(): -
Aleks7 - 23.12.2010
Did you use zcmd?
Re: [HELP]OnPlayerCommandText(): -
Kastranova - 23.12.2010
zcmd How you mean ?
Re: [HELP]OnPlayerCommandText(): -
Kastranova - 23.12.2010
Here is an exmaple of how I start a commmand
Код:
if(strcmp(cmd, "/faq", true) == 0)
Not with :
Код:
zcmd(param, cmdtext[])
Re: [HELP]OnPlayerCommandText(): -
GaGlets(R) - 23.12.2010
You cant use ZCMD and OnPlayerCommandText in one script, They all must be zcmd or in that callback.
Everything works for me so recheck everything for yourself
Re: [HELP]OnPlayerCommandText(): -
Kastranova - 23.12.2010
Quote:
Originally Posted by Kastranova
Here is an exmaple of how I start a commmand
Код:
if(strcmp(cmd, "/faq", true) == 0)
Not with :
Код:
zcmd(param, cmdtext[])
|
I don't use ZCMD, so you say I have to change all my cmds to ZCMD
Re: [HELP]OnPlayerCommandText(): -
Sascha - 23.12.2010
maybe you just have "return 0;" at the end but not "return 1;" after each command?
Re: [HELP]OnPlayerCommandText(): -
Kastranova - 23.12.2010
Nope that ain't it.....