Commands arent working - 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: Commands arent working (
/showthread.php?tid=520112)
Commands arent working -
[SU]Spartan - 17.06.2014
Hello,
Commands arent working,I have scripted them right but they dont work,when i go ingame and write /lvair or any command it sais "SERVER: Unknown Command"
Help me!
Re: Commands arent working -
Rittik - 17.06.2014
Make sure your command has "return 1;" at the end of the code.
Re: Commands arent working -
Laure - 17.06.2014
No wonder, we'll need to see your particular command, and yea did it give .. should return a value warning?
Re: Commands arent working -
Konstantinos - 17.06.2014
You can get that message:
- If you use more than 1 command processor. For example, if you use both DCMD + ZCMD commands in a single mode.
- If a run time error is caused while executing the code from the command.
- If you return 0.
Re: Commands arent working -
[SU]Spartan - 17.06.2014
no wait,
What if i use 2 different filterscripts with different processors?
tha protimousa ta ellinika alla ok.
Re: Commands arent working -
Rittik - 17.06.2014
Convert everything to <zcmd> even the filterscripts.
Re: Commands arent working -
Konstantinos - 17.06.2014
Quote:
Originally Posted by [SU]Spartan
What if i use 2 different filterscripts with different processors?
|
That's fine. The problem would be in a single script if you did.
By the way, check if the commands return 0 because let's assume it will return 0 if the player is not RCON admin so the player will see the unknown command message.
Re: Commands arent working -
[SU]Spartan - 18.06.2014
they are all return 1;
Re: Commands arent working -
[SU]Spartan - 18.06.2014
help me please.
Re: Commands arent working -
TheKillZone - 18.06.2014
Can you post a picture of the server console please if possible?