vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Dec 2013 09:07 AM |
| chatmsg:sub(5, chatmsg:len()) |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 07 Dec 2013 09:09 AM |
| i believe len is short for length |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Dec 2013 09:18 AM |
| So hes basicly starting it at 5 and ending it at the lenght of the chatmessage. Isn't this useless since it automaticly ends at the chatmsg:lenght it you say 5 ? |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 09:20 AM |
| your talking about whooo ??? |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 09:21 AM |
it prints past the 5th character in the message it self
example:
message= hello this is bob
hello| this is bob| ^^^^^ doesnt print the first 5 characters |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Dec 2013 09:22 AM |
| i know that, but that will also do it without the chatmsg:len() right? |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 09:24 AM |
| I personally dont know how to explain it |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 09:24 AM |
no becus chatmsg:len() = full lengh of the message like if you have
msg = hello
print(msg:sub(2,5))-- prints out llo
but if msg change lets say hello you
then its going to print out llo you |
|
|
| Report Abuse |
|
|