INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Top of MC or customize display  (Read 2146 times)

~OHM~

  • Citizen of the Universe
  • *****
  • Posts: 1825
  • "I Don't Play The Music The Music Plays Me"
Top of MC or customize display
« on: June 20, 2017, 12:18:53 pm »

I have this code

<font color="1589FF">Player Left([MC.Version] ,8)<//font> ([Library])

this shows a R at the end or looks like this...  Player 23.0.7 R  or now Player 23.0.8 R

just wondering why the R shows up?
Logged
“I've Reached A Turning Point In My Life. I Now Realize I Have More Yesterdays Then Tomorrows”

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9119
Re: Top of MC or customize display
« Reply #1 on: June 20, 2017, 12:25:02 pm »

Because there's only a single digit in the current build number. The full [MC.Version] would be: "23.0.7 Registered"

Your expression is asking for the first eight characters, which includes the "R" from Registered.

Change this... Left([MC.Version] ,8)
to this: Left([MC.Version] ,7)

This will also capture the space before the "R", but will last you up until v23 gets into triple figure build numbers, after which, you'll need to put it back to eight :)

~OHM~

  • Citizen of the Universe
  • *****
  • Posts: 1825
  • "I Don't Play The Music The Music Plays Me"
Re: Top of MC or customize display
« Reply #2 on: June 20, 2017, 12:27:32 pm »

Thanks marko
Logged
“I've Reached A Turning Point In My Life. I Now Realize I Have More Yesterdays Then Tomorrows”
Pages: [1]   Go Up