回复 panpan8609 的帖子 成了,知识帝万岁... 酱爆于2010-12-16 17:38补充以下内容: 可以了,谢谢 酱爆于2010-12-16 17:38补充以下内容: 谢谢 |
ls正解,删除最后一个"end", def command_文本 前追加一个"end" |
问题很简单,每个方法的定义都需要开头和结尾,也就是 def 方法名 end 再看看你的代码 #命令:登录官网网站 def command_官网 $game_system.se_play($data_system.decision_se) $bb_66rpg = Win32API.new('shell32.dll','ShellExecuteA',%w(p p p p p i),'i') $bb_66rpg.call(0, 'open', 'http://836524877.qzone.qq.com/',0, 0, 1) $scene = nil #文本 end 原代码漏掉了结尾,导致command_wenben方法不能正常被定义,粗心大意啊 def command_wenben shell = Win32API.new("shell32", "ShellExecute", ['L', 'P', 'P', 'P', 'P', 'L'], 'L') shell.Call(0, "open", "123.TXT", 0, 0, 1) end |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-2-17 22:27
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.