Jump to content




Why doesn't concatenation of a substring work


  • You cannot reply to this topic
3 replies to this topic

#1 PixelFox

  • Members
  • 106 posts

Posted 18 June 2015 - 12:07 AM

The title is the best I can describe this.
The code is (This is only a little snippet of the code, where the problem happens):
if bigList[s].Name:len() >=  7 then
bigList[s].Name = string.sub(bigList[s].Name, 1, 6).."..."
end
if bigList[s] was equal to "Intelligent" then it would become "Intel...". But, instead it stays "Intelligent"

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 18 June 2015 - 12:24 AM

Please post the whole code.

#3 PixelFox

  • Members
  • 106 posts

Posted 18 June 2015 - 12:27 AM

Full Code.
http://pastebin.com/6TfmpxJZ

#4 Quintuple Agent

  • Members
  • 107 posts
  • LocationThis page

Posted 18 June 2015 - 01:46 AM

I believe your problem is you are drawing the text before your name edit.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users