Results 1 to 5 of 5
Thread: Command param's
-
05-07-2012, 11:31 #1
-= TeamSpeak User =-
- Join Date
- Jul 2012
- Posts
- 5
Command param's
Why the command param's break after ';'

Every time when I put the semicolon (';') in the place of param I get the error:
"Invalid command or missing parameters: /test connect 127.0.0.1 ; password test"
And everything after the ';' get's skipped (I do have param3 and param4, and when I type my command without ';' everything works perfectly).
Is there any way to fix this? I really need to pass ';' as a param to get my function working.
-
05-07-2012, 16:02 #2
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,039
Never encountered this issue but you can always just use a different Character in the Command and then internally replace whatever Character you choose with the semicolon before processing.
-
05-07-2012, 21:00 #3
-= TeamSpeak User =-
- Join Date
- Jul 2012
- Posts
- 5
Yeah I could do this, but it's not ideal thing to do. I am using the "test_plugin" source code, can anyone else test it to see if they encountering the same issue? And what other ideas you guys have to fix this?
-
05-07-2012, 21:26 #4
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,039
TeamSpeak seems to use this Character internally probably as some sort of End of Command Indicator. There is nothing you can do about it except using another Character as I already suggested.
You can easily check yourself by outputting the Parameters the function got called with, which is what I did and this is how it looks:
[CONSOLE] indicates output on Debug Console which is where I was printing to for testing purposes.PHP Code:Invalid command or missing parameters: /myDbgPlg P1 P2; P3 P4 ; P5 // 6 Parameters (P1) (P2;) (P3) (P4) (;) (P5)
[CONSOLE] ChatCommand on Server 1 : P1 P2
Invalid command or missing parameters: /myDbgPlg ; // 1 Parameter (;)
// Function is not even called on that one!
Invalid command or missing parameters: /myDbgPlg x;abc // 1 Parameter (x;abc)
[CONSOLE] ChatCommand on Server 1 : x
Invalid Command Lines are in the Server Chat Window of the Client when I was entering a Command as I was returning 0 in the function.
// Are comments by me.
-
06-07-2012, 06:42 #5
-= TeamSpeak User =-
- Join Date
- Jul 2012
- Posts
- 5
Thank you for help guys. You all are awesome!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
/emote or /me command!
By willy_sunny in forum General QuestionsReplies: 2Last Post: 12-01-2010, 15:26 -
no such command
By gvjordan in forum [TeamSpeak 2] Server SupportReplies: 1Last Post: 27-05-2007, 16:11 -
can you run at command prompt
By dtolley in forum [TeamSpeak 2] Client SupportReplies: 1Last Post: 28-05-2004, 08:16 -
New channel Command dot
By =SOS_MAGE= in forum [TeamSpeak 2] General QuestionsReplies: 0Last Post: 11-05-2004, 03:35


Reply With Quote