Script error (concatenating texts)
3 replies



19.06.17 04:01:35 pm
Can you please find the error in this script line ?
My script work when i remove it and won't work when i add it
so i though the error is this line
please how can i fix it
Code:
1
point[arg1]+""..txt:sub(7,100)..""
My script work when i remove it and won't work when i add it
so i though the error is this line
please how can i fix it
That's not even the full line..
But you're trying to concatenate strings with different operator. Try this:
But you're trying to concatenate strings with different operator. Try this:
point[arg1] .. txt:sub(7,100)
. I'm awesome ... and I really like cookies.
Also it's very important to note that whenever you see something like
You are concatenating an EMPTY STRING. This changes NOTHING.
so
and
In math the equivalent operations to
X..""..Y
or X..''..Y
(with X and Y being ANYTHING) it's a POINTLESS operation written by someone who didn't know what he's doing.You are concatenating an EMPTY STRING. This changes NOTHING.
so
X..""..Y
is equal to X..Y
and
X..''..Y
is equal to X..Y
as well.In math the equivalent operations to
X..""
would be X+0
, X-0
,X*1
or X/1
. It's neutral. It doesn't change anything. It only wastes performance. So why do you do it? Don't do it. edited 1×, last 19.06.17 07:20:20 pm



