Jump to content

string.upper problem


JeViCo

Recommended Posts

> mystring = "somE teXt" mystring = mystring:lower() print(mystring)
some text

Your code is fine, the chat should display everything lowercase.

You've probably made a mistake in your code.

Edited by DNL291
Link to comment
2 hours ago, DNL291 said:

> mystring = "somE teXt" mystring = mystring:lower() print(mystring)
some text

Your code is fine, the chat should display everything lowercase.

You've probably made a mistake in your code.

my part of code:

addCommandHandler("check",function(cmd, stre, stre2, value)
		if (stre and stre2 and value) then
			stre = stre:lower()
			print("stre = "..stre)
			stre2 = stre2:upper()
			print("stre2 = "..stre2)
		end
end)

it doesn't work here

Link to comment
16 hours ago, Juuve said:

Ok, but i replaced it with detail command and keep getting the same resul :\

try to use another formula 

addCommandHandler("mycmd",function(cmd, stre, stre2, value)
		if (stre and stre2 and value) then
			print("stre = "..(string.lower(stre)))
			print("stre2 = "..(string.upper(stre2)))
		end
end)

is it work?

Edited by Master_MTA
  • Thanks 1
Link to comment
8 hours ago, Master_MTA said:

try to use another formula 


addCommandHandler("mycmd",function(cmd, stre, stre2, value)
		if (stre and stre2 and value) then
			print("stre = "..(string.lower(stre)))
			print("stre2 = "..(string.upper(stre2)))
		end
end)

is it work?

Thank you! It works! I can't understand why it didn't work before. Maybe i wrote a formula wrong

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...