Author Topic: Ulx vote  (Read 274 times)

0 Members and 1 Guest are viewing this topic.

Offline Aaron113

  • Full Member
  • ***
  • Posts: 117
  • Karma: 2
    • View Profile
Ulx vote
« on: February 14, 2010, 12:15:28 PM »
On the first Option for ulx vote I cannot have more than 1 word for the first option.  I don't know if it is only my server or if it is suppose to happen.
It isn't really that big of an issue but can get very annoying.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3488
  • Karma: 188
  • Project Lead
    • View Profile
Re: Ulx vote
« Reply #1 on: February 14, 2010, 02:08:38 PM »
put anything longer than one word in quotes
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” -Brian W. Kernighan
"I love working on my crappy code. it is crappy, but it is mine. I guess I could love other people's code, but it's like loving other people's children -- not quite the same as your own" -- Jeff Atwood
"Their tree came and found my tree!" -- Stickly Man!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3262
  • Karma: 106
  • Project Specialist
    • View Profile
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ulx vote
« Reply #2 on: February 14, 2010, 02:40:08 PM »
Aaron, you'll need to know that for many scripts, not just ulx.
<command> "option one" .. place more than one word in quotes when doing commands.
ULX autocompletes player names and other ocmmands in quotes for you from game console too because of this.
Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it - David Pogue

Offline Aaron113

  • Full Member
  • ***
  • Posts: 117
  • Karma: 2
    • View Profile
Re: Ulx vote
« Reply #3 on: February 15, 2010, 12:54:16 PM »
I have put quotes on it... It just automatically splits up the first option.

ulx vote "This is a test vote" "testing this" "testing this" "testing this"

If I were to type that in console, it would show up like this...
This is a test vote
1. testing
2. this
3. testing this
4. testing this

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3488
  • Karma: 188
  • Project Lead
    • View Profile
Re: Ulx vote
« Reply #4 on: February 15, 2010, 04:34:08 PM »
Hmm, you're right! In that case, I probably made a mistake with how I dealt with quotes when I took out the datastream dependency. I'll check into it tonight.
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” -Brian W. Kernighan
"I love working on my crappy code. it is crappy, but it is mine. I guess I could love other people's code, but it's like loving other people's children -- not quite the same as your own" -- Jeff Atwood
"Their tree came and found my tree!" -- Stickly Man!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3262
  • Karma: 106
  • Project Specialist
    • View Profile
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ulx vote
« Reply #5 on: February 15, 2010, 05:31:03 PM »
Ha! In the mean time.. option 5... both 1 and 2!
Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it - David Pogue

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3488
  • Karma: 188
  • Project Lead
    • View Profile
Re: Ulx vote
« Reply #6 on: February 15, 2010, 05:53:51 PM »
Fixed in ULib rev 100
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” -Brian W. Kernighan
"I love working on my crappy code. it is crappy, but it is mine. I guess I could love other people's code, but it's like loving other people's children -- not quite the same as your own" -- Jeff Atwood
"Their tree came and found my tree!" -- Stickly Man!

Offline Aaron113

  • Full Member
  • ***
  • Posts: 117
  • Karma: 2
    • View Profile
Re: Ulx vote
« Reply #7 on: February 16, 2010, 01:39:20 PM »
Thanks for fix ;)