|
| 07 Sep 2011 01:50 PM |
Anything wrong with this:
string.gsub(text, ",", "!") |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 07 Sep 2011 02:25 PM |
| It won't work my way though.. |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
| |
|
| |
|
|
| 07 Sep 2011 03:16 PM |
text = "Hi,"
I want to replace the only comma with ! |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 03:20 PM |
text = "Hi,"
print(string.gsub(text, ",", "!")) |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 03:23 PM |
| It displays it in a Message text... |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 03:24 PM |
Wait, it looked like the third comma was in a string, when I actually took a closer look at your script and turns out the comma was just being a comma.
text = string.gsub("Hi,", ",", "!") print(text) |
|
|
| Report Abuse |
|
|
| |
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 07 Sep 2011 03:27 PM |
| Your script works just fine ._. I tested it. |
|
|
| Report Abuse |
|
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 07 Sep 2011 04:17 PM |
| tell the guy above you how did you test it? |
|
|
| Report Abuse |
|
|
| |
|