English Script error (concatenating texts)

3 replies
Goto Page
To the start Previous 1 Next To the start
Up
I3I3
BANNED
Offline Off
Can you please find the error in this script line ?

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
19.06.17 04:30:12 pm
Up
Pro Gaming Network
User
Offline Off
Code:
point[arg1]"..txt:sub(7,100).."


try this
19.06.17 04:34:13 pm
Up
Ortimh
User
Offline Off
That's not even the full line..
But you're trying to concatenate strings with different operator. Try this:
point[arg1] .. txt:sub(7,100)
.
I'm awesome ... and I really cookies
19.06.17 07:09:50 pm
Up
DC
Admin
Online On
Also it's very important to note that whenever you see something like
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
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 Next To the start