cristinon
|
  |
| Joined: 15 Nov 2011 |
| Total Posts: 297 |
|
|
| 24 Aug 2015 09:50 AM |
| How do you get the characters after a string? Example (get chars after "m ") m getthese |
|
|
| Report Abuse |
|
|
cristinon
|
  |
| Joined: 15 Nov 2011 |
| Total Posts: 297 |
|
| |
|
cristinon
|
  |
| Joined: 15 Nov 2011 |
| Total Posts: 297 |
|
| |
|
cristinon
|
  |
| Joined: 15 Nov 2011 |
| Total Posts: 297 |
|
|
| 24 Aug 2015 10:03 AM |
| Bump -_- PLEASE ANSWER!!!!!!!! |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2015 10:06 AM |
Show us the string/
while true do the do |
|
|
| Report Abuse |
|
|
Phewh
|
  |
| Joined: 25 Aug 2014 |
| Total Posts: 29 |
|
|
| 24 Aug 2015 10:07 AM |
if string.sub(string, 1, 2) == "m " then return string.sub(string, 3, string.len(string)) end |
|
|
| Report Abuse |
|
|
Phewh
|
  |
| Joined: 25 Aug 2014 |
| Total Posts: 29 |
|
|
| 24 Aug 2015 10:08 AM |
local text = "m this will return"
if string.sub(text, 1, 2) == "m " then return string.sub(text, 3, string.len(text)) end |
|
|
| Report Abuse |
|
|
cristinon
|
  |
| Joined: 15 Nov 2011 |
| Total Posts: 297 |
|
| |
|
|
| 24 Aug 2015 10:17 AM |
more like
string.match("m Hi there lol", "m%s(.+)") |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2015 10:19 AM |
yep ^^
while true do the do |
|
|
| Report Abuse |
|
|