generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: <(/)Value Type="integer">255<(/)Value>

Previous Thread :: Next Thread 
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
08 May 2015 04:55 AM
How would I get the rank number out of that?
That's what HttpService returned.

255 of course can be any rank.

The slashes are in parentheses as Roblox otherwise would go weird lol
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
08 May 2015 05:05 AM
local Found1 = 0
for i=1, #string do
if string:sub(i,i) == ">" then
Found1 = i
break
end

for i=Found1, #string do
if string:sub(i,i) == "<" then
string = string:sub(Found1, i-1)
break
end
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
08 May 2015 05:06 AM
I'm sure the others are going to come along and use string patterns.. I just don't understand them.
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
08 May 2015 05:07 AM
rank = rank:sub(rank:find("integer") + 9, rank:find("/Value") - 2)

I feel so inefficient xd
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
08 May 2015 05:23 AM
^^^ itys
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
08 May 2015 05:38 AM
http://codepad.org/OMGPuiFy

Roblox is being a noob :(


I script -~ chimmihc
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
08 May 2015 05:39 AM
lol just notices OMG is in the url.


I script -~ chimmihc
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
08 May 2015 06:39 AM
Well, mine does the same and is shorter than both of urs ;3
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
08 May 2015 06:44 AM
It is very dependent.

In this case they all do the same thing.


I script -~ chimmihc
Report Abuse
gskw is not online. gskw
Joined: 05 Jan 2013
Total Posts: 1364
08 May 2015 07:05 AM
Those are both inefficient IMO, just do:
str:match("%d+")

This is a signature. Recommended username: WetGskw
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
08 May 2015 07:07 AM
Could you explain what that does?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
08 May 2015 07:12 AM
That just matches digits...

It works nothing like mine.


I script -~ chimmihc
Report Abuse
gskw is not online. gskw
Joined: 05 Jan 2013
Total Posts: 1364
08 May 2015 07:25 AM
Oh my Auto-Gen signature really hurt that time lol
(And this one too, I'm totally not hollow)

This is a signature. Recommended username: HollowGskw
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
08 May 2015 09:23 AM
stackoverflow.com/questions/1732348
Report Abuse
UndefinedVariable is not online. UndefinedVariable
Joined: 15 Mar 2013
Total Posts: 4632
08 May 2015 09:56 AM
local function GetContent(Tag)
local Content = Tag:match("<.+>(.+)<\/.+>")

return Content
end

or

rank = rank:match("<.+>(.+)<\/.+>")

------------------------------------

just whatever you think will be best to use

what to heck
Report Abuse
UndefinedVariable is not online. UndefinedVariable
Joined: 15 Mar 2013
Total Posts: 4632
08 May 2015 09:58 AM
I also noticed the "Content" variable was unneeded, but I just like being organized when it's not needed or sometimes not even really clean, sorry.

what to heck
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image