Community Forums Today's Posts     Member List     Archive    
Results 1 to 5 of 5

Thread: Command param's

  1. #1
    Join Date
    Jul 2012
    Posts
    5

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

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

  3. #3
    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?

  4. #4
    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:
    PHP Code:
    Invalid command or missing parameters: /myDbgPlg P1 P2P3 P4 P5 // 6 Parameters (P1) (P2;) (P3) (P4) (;) (P5)
    [CONSOLEChatCommand 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)
    [CONSOLEChatCommand on Server 1 
    [CONSOLE] indicates output on Debug Console which is where I was printing to for testing purposes.
    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.

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

  1. /emote or /me command!
    By willy_sunny in forum General Questions
    Replies: 2
    Last Post: 12-01-2010, 15:26
  2. no such command
    By gvjordan in forum [TeamSpeak 2] Server Support
    Replies: 1
    Last Post: 27-05-2007, 16:11
  3. can you run at command prompt
    By dtolley in forum [TeamSpeak 2] Client Support
    Replies: 1
    Last Post: 28-05-2004, 08:16
  4. New channel Command dot
    By =SOS_MAGE= in forum [TeamSpeak 2] General Questions
    Replies: 0
    Last Post: 11-05-2004, 03:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •