The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



2DWorlds Forums
Problem with my tool - 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: Problem with my tool (/showthread.php?tid=4831)



Problem with my tool - Duck - 05-21-2011

-- I don't get any output Sad

Tool = script.Parent

function Change©
if C == p then
if Tool.Parent.Parent.Character.Body.Layer ~= 0 then
Tool.Parent.Parent.Character.Body.Layer = Tool.Parent.Character.Body.Layer-1
end
elseif C == l then
if Tool.Parent.Parent.Character.Body.Layer ~= 2 then
Tool.Parent.Parent.Character.Body.Layer = Tool.Parent.Character.Body.Layer+1
end
end
end


link(Tool.KeyDown, Change)


RE: Problem with my tool - noob007 - 05-22-2011

What's with the copyright symbol?


RE: Problem with my tool - Jacob__mybb_import1 - 05-22-2011

I got an error when I tried to use it, you're missing a "Parent" in both long lines.

Also, variables are case sensitive (so you need a lowercase or capital C everywhere, not both) and you have to put strings (letters, sentences, or words) in quotes or Lua will think you're trying to use a variable.

[lua]
Tool = script.Parent

function Change©
if c == "p" then
if Tool.Parent.Parent.Character.Body.Layer ~= 0 then
Tool.Parent.Parent.Character.Body.Layer = Tool.Parent.Parent.Character.Body.Layer-1
end
elseif c == "l" then
if Tool.Parent.Parent.Character.Body.Layer ~= 2 then
Tool.Parent.Parent.Character.Body.Layer = Tool.Parent.Parent.Character.Body.Layer+1
end
end
end


link(Tool.KeyDown, Change)
[/lua]


RE: Problem with my tool - Duck - 06-03-2011

(05-22-2011, 08:10 PM)noob007 Wrote: What's with the copyright symbol?

Apparently the forums change ( c ) into ©