![]() |
Output error - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13) +--- Thread: Output error (/showthread.php?tid=6137) |
Output error - Nyht - 06-24-2011 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] RE: Output error - noob007 - 06-24-2011 Replace '=' with '=='. RE: Output error - Qwertygiy - 06-24-2011 If then statements require double ='s. So [lua] if thing == true then if thing ~= nil then [/lua] Etc. RE: Output error - Nyht - 06-24-2011 (06-24-2011, 07:45 PM)Qwertygiy Wrote: If then statements require double ='s. And I didn't think of it... Thanks. :P |