- Joined
- Nov 11, 2006
- Messages
- 7,652
Hello! No, this isn't to advertise a map. I need someone to test whether or not this disconnects another player. It is just a simple code that I need to be tested for multiplayer just for curiosity's sake.
Basically just test the map attached below with a friend or something. If they don't get disconnected, success. If they do, then it is still fine.
Yeah, don't create handles in GetLocalPlayer() blocks yada yada... Text tags aren't allocated like normal handles, I just want to see if this disconnects or not. =)
Thanks to any who test it, +rep to any who help. Please be sure that you post the results of the messages for both players if you can.
JASS:
function LP_Act takes nothing returns nothing
local texttag x = null
call BJDebugMsg("Null Handle Id: "+I2S(GetHandleId(x)))
if GetLocalPlayer() == Player(0) then
set x = CreateTextTag()
endif
call BJDebugMsg("New Handle Id: "+I2S(GetHandleId(x)))
call BJDebugMsg("Did anyone disconnect?")
call BJDebugMsg("Thanks for testing!")
endfunction
//===========================================================================
function InitTrig_LocalPlayer takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterTimerEvent(t,3,false)
call TriggerAddAction(t,function LP_Act)
endfunction
Basically just test the map attached below with a friend or something. If they don't get disconnected, success. If they do, then it is still fine.
Yeah, don't create handles in GetLocalPlayer() blocks yada yada... Text tags aren't allocated like normal handles, I just want to see if this disconnects or not. =)
Thanks to any who test it, +rep to any who help. Please be sure that you post the results of the messages for both players if you can.