Output error
#1
First line: 'then' expected near '='


[lua]if msg = "/clone" then
clone = create("NPC")
label = create("Label")
clone.Parent = World
clone.Name = speaker.Name .. "'s Clone"
clone.Label.Text = speaker.Name.. "'s Clone"
speaker.Body:clone().Parent = game.World
end[/lua]
All my mods are available here.
Reply
#2
Replace '=' with '=='.
Reply
#3
If then statements require double ='s.

So

[lua]
if thing == true then
if thing ~= nil then
[/lua]

Etc.
Reply
#4
(06-24-2011, 07:45 PM)Qwertygiy Wrote: If then statements require double ='s.

So

[lua]
if thing == true then
if thing ~= nil then
[/lua]

Etc.

And I didn't think of it... Thanks. :P
All my mods are available here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)