找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 3009|回复: 1

[脚本] 通过脚本把脚本生成脚本文件

[复制链接]
发表于 2009-12-9 13:54:34 | 显示全部楼层 |阅读模式
看起来没用,其实是有用的~
  1. sname = script_get_name( argument0 );
  2. if script_exists( sname )
  3. {
  4. newgml = file_text_open_write( sname + ".gml" );
  5. file_text_write_string( newgml, "#define " + sname );
  6. file_text_writeln( newgml );
  7. file_text_write_string( newgml, script_get_text( sname ) );
  8. repeat( 2 ){ file_text_writeln( newgml ); };
  9. }
复制代码
发表于 2010-1-10 16:04:24 | 显示全部楼层

回 楼主(franniss) 的帖子

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|幻想森林

GMT+8, 2026-10-24 23:26 , Processed in 0.010101 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表