TC官方合作论坛
标题:
是不合法的变量名或者是没定义的变量名。哪里不对呀。
[打印本页]
作者:
328556289
时间:
2014-2-21 14:57
标题:
是不合法的变量名或者是没定义的变量名。哪里不对呀。
#include"mousedrift.t"
namespace redblue
//定义默认空间
function abbred( blood)//人物加红操作
//这里添加你要执行的代码
int retum,control
int isfind,chanx,chany
control=4
while(control>0)
if(blood==70)
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+27,chany+13)
if(strclor==524432)
retum=1
break
else
mousedrift.mobile(chanx,chany+17)
help.sleep(1000)
mouse.rightclick(1)
help.sleep(1000)
mousedrift.mobile(chanx-30,chany+350)
control=control-1
retum=0
endif
else
help.sleep(100)
continue
endif
else
if(blood==50)
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+19,chany+13)
if(strclor==120)
retum=1
break
else
mousedrift.mobile(chanx,chany+17)
help.sleep(1000)
mouse.rightclick(1)
help.sleep(1000)
mousedrift.mobile(chanx-30,chany+350)
control=control-1
retum=0
endif
else
help.sleep(100)
continue
endif
endif
endif
endwhile
return retum
endfunction
function abbblue()
int isfind,chanx,chany
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+19,chany+13)
help.messagebox(convert.inttostr())
endif
return 0
endfunction
endnamespace
//空间结束语句
>错误:D:\TC\redblue.t 行号:65 错误信息:'convert.inttostr'是不合法的变量名或者是没定义的变量名
作者:
328556289
时间:
2014-2-21 15:16
#include"mousedrift.t"
namespace redblue
//定义默认空间
function abbred( blood)//人物加红操作
//这里添加你要执行的代码
int retum,control
int isfind,chanx,chany
control=4
while(control>0)
if(blood==70)
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+27,chany+13)
if(strclor==524432)
retum=1
break
else
mousedrift.mobile(chanx,chany+17)
help.sleep(1000)
mouse.rightclick(1)
help.sleep(1000)
mousedrift.mobile(chanx-30,chany+350)
control=control-1
retum=0
endif
else
help.sleep(100)
continue
endif
else
if(blood==50)
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+19,chany+13)
if(strclor==120)
retum=1
break
else
mousedrift.mobile(chanx,chany+17)
help.sleep(1000)
mouse.rightclick(1)
help.sleep(1000)
mousedrift.mobile(chanx-30,chany+350)
control=control-1
retum=0
endif
else
help.sleep(100)
continue
endif
endif
endif
endwhile
return retum
endfunction
function abbblue()
int isfind,chanx,chany
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+19,chany+13)
help.messagebox(convert.inttostr(strclor))
endif
return 0
endfunction
endnamespace
//空间结束语句
>错误:D:\TC\redblue.t 行号:65 错误信息:'convert.inttostr'是不合法的变量名或者是没定义的变量名
上面那个有被我删除的地方,这个是全的
作者:
328556289
时间:
2014-2-21 15:17
help.messagebox(convert.inttostr(strclor)) 65行是这段
作者:
dongyijun1979
时间:
2014-2-21 15:56
去看看新版的帮助文档吧!你这是老式语法
改一下:help.messagebox(type.cstr(strclor) )
作者:
小西
时间:
2014-2-21 16:11
convert.inttostr 是老版本的命令.
现在 转换 命令已经更改为 类型
这是一个老版本的脚本.建议学习的时候,下载新版本的教程.
欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/)
Powered by Discuz! X3.1