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: Strange String Manipulation doesn't Work :/

Previous Thread :: Next Thread 
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
19 Mar 2015 04:37 PM
local String1 = String:match(Match.. '%d+.')
String1 = String1:match('http://roblox.com/asset/?id=%d+.')
print(String1, ' was found')
return String or ''

Prints:
>nil was found


I tried looking for the String Passed on to the Function in the Script who's Source am using... Found it, but here says nil :/

"My Life is going Good... but..."
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
19 Mar 2015 04:38 PM
I don't even understand what you are doing. String patterns do not work like that at all. What are you doing?
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
19 Mar 2015 04:40 PM
inside function...
"%['Stuff'%] = 'http://roblox.com/asset/%?id="
is the Pattern I wanna Match... I even used String Manipulation though Command Prompt and it Worked!
I Copied the Script to Workspace and it Worked :/

"My Life is going Good... but..."
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
19 Mar 2015 04:42 PM
%w+ ?= ?rbxassetid://%d+

Also, rbxassetid:// is shorter, and works the same.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
19 Mar 2015 04:44 PM
well I don't wanna change everything now XD I know I could use ctrl + H but still it could get messy :\
and I don't know... changes make things kinda bad for me... so for now am just Collecting Problems :/

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
19 Mar 2015 04:53 PM
just after local String1 I Added another Print...
>['Stuff'] = 'http://roblox.com/asset/?id=6916117' was found
>nil was found
y can't I Search the String that was Brought to me by 'string.match'???

"My Life is going Good... but..."
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
19 Mar 2015 04:57 PM
local String1 = String:match(Match.. '%d+.')
String1 = String1:match('http://roblox.com/asset/?id='..String1)


Try that?
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
19 Mar 2015 05:00 PM
lol found the Problem, can't believe I didn't see it XD
btw war, that wouldn't Work cos of Special Characters :/

I missed the '?' so I didn't put a '%' before it... XD

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
19 Mar 2015 05:17 PM
hmmm...
['Startup'] = true;

if string.match(stuff.Source, "%['Startup'%] == true") then

doesn't Work :/

"My Life is going Good... but..."
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