MappingFOR
Web Developer
- Joined
- Jul 12, 2010
- Messages
- 35
- Reaction score
- 0
Hello. Im making commands system, and i need help.
How to detect text in lua?
Somethink like preg_match() and explode() in PHP
local text = "add_experience(100,50)"
I have to detect that is add_experience function, and take all values as text[0] = 100, text[1] = 50.
How to detect text in lua?
Somethink like preg_match() and explode() in PHP
local text = "add_experience(100,50)"
I have to detect that is add_experience function, and take all values as text[0] = 100, text[1] = 50.
Code:
if(?) then
split text for 100 and 50.
end