Jump to content

Quest automatic get name from rank


Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

string.find does not return bool! :)

It returns the position where it found the pattern. Also it returns nil if the pattern is not found within the string.

 

Try it with that:

 

if string.find(pc.get_name(), "[%s]") != nil then

 

This should do the trick :)

 

The ""..pc.get_name().."" has no use. You're just concatenating an empty string with the player name and then an empty string again. The result is the same as you'd get it when you just use pc.get_name() :)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.