criJoin Date: 2008-07-02 Post Count: 254 |
How i could detect 2 variable in a command in scripting
like /Message Title Idk |
|
criJoin Date: 2008-07-02 Post Count: 254 |
> 10 views
> no reply |
|
otubJoin Date: 2013-11-15 Post Count: 12632 |
go away
youtu.be/ZZCt92zLmLI |
|
NaosJoin Date: 2006-11-01 Post Count: 159 |
Nice PG I know your skype. |
|
criJoin Date: 2008-07-02 Post Count: 254 |
Still no one helps... Unusefull people... |
|
otubJoin Date: 2013-11-15 Post Count: 12632 |
naos you're pg'd too
youtu.be/ZZCt92zLmLI |
|
dag98Join Date: 2008-01-12 Post Count: 11558 |
oh, i hate pgers. I think roblox should make it more dangerus to pg
Turn down for what? |
|
criJoin Date: 2008-07-02 Post Count: 254 |
BUT THIS THREAD NOT ABOUT PG -.- |
|
|
criJoin Date: 2008-07-02 Post Count: 254 |
BUT HOW SHOULD I KNOW TO GET THE 2 COMMAND FROM THIS?
That's why i hate forums, people too lazy to write a normal tutorial. |
|
SkiIlageJoin Date: 2011-11-25 Post Count: 51 |
local string = 'random'
print(string:sub(3,5))
output > "ndo"
^returns a string value from letters 3,5
SLY3's alt |
|
|
Because tutorials and docs already exist. |
|
criJoin Date: 2008-07-02 Post Count: 254 |
@SkiIlage But how should i know the lenght of the first variable like:
/showmessage hiiiiiiiiiiiii 133 |
|
SkiIlageJoin Date: 2011-11-25 Post Count: 51 |
http://codepad.org/nNRQJpL0
Couldn't post it here because of roblox's dumbass filter.
That isn't a complete function, it's just a concept demonstration so you can use the same method I used there.
SLY3's alt |
|
eLunateJoin Date: 2014-07-29 Post Count: 13268 |
local function ctargs(s,d)
-- d is the bit at the start like /showmessage
local r = {};
s:gsub(d,''):gsub('%S-',function(c) table.insert(r,c) end)
return unpack(r)
end
Should return a tuple of extra arguments, delimimated by spaces. |
|
|
"BUT HOW SHOULD I KNOW TO GET THE 2 COMMAND FROM THIS?
That's why i hate forums, people too lazy to write a normal tutorial."
This is why I hate people like you, too lazy to learn.
⬡ |
|