Jump to content

[LUA]create Big Letter


Tockra

Recommended Posts

Posted

Hello Guis,

i want do ask, how i can make out "h" "H" with an lua function?

Is it doable?

I want build a function, who returns from a string all variants of big and small letters Like : "te" = "te","tE","Te","TE"

h32yhix1ossu.png
Posted

Okay thank you...

One other question, exist a function, who make returns with all variant a table or must i do it alone, already ?

h32yhix1ossu.png
Posted
local typesofletter = "te" or "tE" or "Te" or "TE"

what is this?

afaik this will be true ;)

you mean table maybe?

anyway 'te' was an example.. wanna do the same for:

iamveryluckyman

? ;p

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
local typesofletter = "te" or "tE" or "Te" or "TE"

what is this?

afaik this will be true ;)

you mean table maybe?

anyway 'te' was an example.. wanna do the same for:

iamveryluckyman

? ;p

Did I just fail that bad? xD

Fuck tables I haven't done that shit yet. :(

iamverysillyman <-- You wanna do that one? :D

Posted
Did I just fail that bad? xD

i think so..

good idea is not to giving random advices when you dont know how to solve problem :P

iamverysillyman <-- You wanna do that one? :D

nope, but i can write a generator for it :P

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
Did I just fail that bad? xD

i think so..

good idea is not to giving random advices when you dont know how to solve problem :P

My understanding of it is vague, I just assumed that used in the right way that one could easily check if any of it's values exist. You've enlightened me :idea:

iamverysillyman <-- You wanna do that one? :D

nope, but i can write a generator for it :P

Get writing then :P

Posted
Get writing then :P

i dont think anybody really needs it :P

better way than checking all of possibilities it to do something like:

local mystring = "IamGOD"
local yourstring = "IAmgOd"
 
local result = compareNonCaseSensitive(mystring, yourstring)
if (result) then
outputChatBox("yes, strings are the same!")
else
outputChatBox("no, strings are different")
end
 
function compareNonCaseSensetive(str1, str2)
if (str1==nil or str2==nil) then return false end
if (string.lower(tostring(str1)) == string.lower(tostring(str2))) then
return true
else
return false
end
end

this will output yes, strings are the same!

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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...