找回密码
 点一下
查看: 1092|回复: 7

问个问题

[复制链接]
发表于 2008-12-28 12:51:48 | 显示全部楼层 |阅读模式
SelectUnitForPlayerSingle

这个函数会引起掉线?


我用的是:
游戏开始0.1秒
命令玩家1选择 小精灵(预置)
 楼主| 发表于 2008-12-28 12:53:24 | 显示全部楼层
function SelectUnitForPlayerSingle takes unit whichUnit, player whichPlayer returns nothing
    if (GetLocalPlayer() == whichPlayer) then
        // Use only local code (no net traffic) within this block to avoid desyncs.
        call ClearSelection()
        call SelectUnit(whichUnit, true)
    endif
endfunction


虽然GetLocalPlayer() ,不过似乎。。。不应该才对。
回复

使用道具 举报

发表于 2008-12-28 12:54:15 | 显示全部楼层
我觉得应该不会啊,否则bj也不会专门弄一个会导致掉线的函数出来吧
回复

使用道具 举报

 楼主| 发表于 2008-12-28 12:54:57 | 显示全部楼层
可是事实上的确掉线了。。。
难道是游戏刚开始的时候数据会不同步?
回复

使用道具 举报

恶声恶气 该用户已被删除
发表于 2008-12-28 13:22:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| 发表于 2008-12-28 17:21:01 | 显示全部楼层
谁说我长得丑。。。
回复

使用道具 举报

发表于 2008-12-28 17:23:24 | 显示全部楼层
不是我………………
回复

使用道具 举报

恶声恶气 该用户已被删除
发表于 2008-12-28 18:40:49 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-30 15:22 , Processed in 0.044592 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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