|
| 17 Jul 2015 10:28 AM |
need to know how to use string.match
ive already asked scripters, nobody is there atm.
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 10:30 AM |
b
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 17 Jul 2015 10:30 AM |
Basically returns a number of where your match starts in the whole strong.
"There are many problems in the world, but this is not one of them." |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 10:31 AM |
"Basically returns a number of where your match starts in the whole strong."
yeah, but I need help with it in my script, here's the thread in scripters: http://www.roblox.com/Forum/ShowPost.aspx?PostID=167871029
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 17 Jul 2015 10:36 AM |
I'd help if I didn't forget the exact work of the patterns you're using. I'm sorry. ^^
"There are many problems in the world, but this is not one of them." |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 10:48 AM |
"I'd help if I didn't forget the exact work of the patterns you're using. I'm sorry. ^^"
it's fine, i think eLunate gave me the patterns anyway.
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Jul 2015 10:49 AM |
"Nobody cares"
ok.
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 17 Jul 2015 10:51 AM |
>Basically returns a number of where your match starts in the whole strong. that's string.find
I can't really understand what you're trying to do here
Hello World! |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 17 Jul 2015 10:52 AM |
Well it seems pretty obviously that I haven't scripted in 3 years then. ._.'
"There are many problems in the world, but this is not one of them." |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 17 Jul 2015 10:53 AM |
that Lmad guy is a botter. He's just dumb
Hello World! |
|
|
| Report Abuse |
|
|
FlamingIt
|
  |
| Joined: 18 Jun 2013 |
| Total Posts: 3255 |
|
|
| 17 Jul 2015 10:53 AM |
ok you light a match then light the string on fire that is how
"I love eating shrooms" -Mario |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 10:53 AM |
"I can't really understand what you're trying to do here"
explained in scripters thread
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 17 Jul 2015 10:59 AM |
no, no it's not
something about text and aircraft carriers?! Perhaps a little more generalized concept of what you're trying to do
Hello World! |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 11:04 AM |
"something about text and aircraft carriers?! Perhaps a little more generalized concept of what you're trying to do"
guibased battleship game
place down a 'card' with the text battleship
card has the text 'Aircraft carrier x[numberleft]" (numberleft is a value, and it's without the square brackets), using string.match, i remove that when i click a grid part
i want the aircraft carrier to take up multiple places, first, I need to check if it's a ship that takes up multiple places, but when I do, it doesn't work, although the text is the exact thing the if statement its checking.
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 11:05 AM |
is checking*
i dont know how to explain it
this is why i dont make games anymore. i cant explain what im doing
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2015 11:07 AM |
/2fcRvFTn
tried to explain in comments (pastebin)
Can't you see that everything I've done has been about trying to repay him? |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 17 Jul 2015 11:12 AM |
>I need to check if it's a ship that takes up multiple places, last I checked, all ships took up at least two spaces, no?
>f.Text = string.match(f.Text, "^(.*)x%d*$").." x"..f.Left.Value I can't decipher all that. Is it trying to reduce it to x# or just Aircraft Carrier?
Hello World! |
|
|
| Report Abuse |
|
|