找回密码
 点一下
查看: 819|回复: 5

ba_lastCreatedTextTag不同步会引起掉线吗

[复制链接]
发表于 2010-2-7 17:01:47 | 显示全部楼层 |阅读模式
RT  用
if  GetLocalPlayer....
set  ba_lastCreatedTextTag=CreateTextTag()

不太清楚本地函数
请问这样BJ的全局变量bj_lastCreatedTextTag就不同步了 会引起掉线吗  
发表于 2010-2-7 17:15:31 | 显示全部楼层
应该会掉线~~~
回复

使用道具 举报

 楼主| 发表于 2010-2-7 19:26:48 | 显示全部楼层
那请问该怎么使用呢
回复

使用道具 举报

发表于 2010-2-7 20:11:11 | 显示全部楼层
这样用:
[jass]
local texttag tt = null
local string s = null
if GetLocalPlayer() == XX then
    set s = "XXXX"
endif
set tt = CreateTextTag()
call SetTextTagText( tt, s, 1.0 )
[/jass]
只是个示范而已。
回复

使用道具 举报

 楼主| 发表于 2010-2-7 23:31:23 | 显示全部楼层
[jass]endif

set tt = CreateTextTag()

call SetTextTagText( tt, s, 1.0 )[/jass]

这样就对所有玩家CreateTextTag()  了

我的目的是只对伤害者和接受伤害的英雄所属创建漂浮文字 这样应该不会卡

[jass]
function B
    local  texttag ttt = CreateTextTag()
endfunction

function A
  if   GetLocalPlayer()  ==...  then
      call  B()
  endif
endfunction[/jass]

我试下这样行不行
回复

使用道具 举报

发表于 2010-2-8 06:49:08 | 显示全部楼层
引用第4楼zh62920于2010-02-07 23:31发表的  :
[jass]endif

set tt = CreateTextTag()

call SetTextTagText( tt, s, 1.0 )[/jass]
.......
那也不行。
只要不同步创建texttag应该就会掉线。
但是texttag的文本string是可以不同步的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-7-22 10:25 , Processed in 0.034649 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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