soulreaping
New Member
- Reaction score
- 17
Hey,
I tried to use this function to create custom error messages:
But the sound ain't playing.
Thanks for the helpers!
I tried to use this function to create custom error messages:
JASS:
function ErrMsg takes player p, string s returns nothing
local sound so = CreateSound("Sound\\Interface\\Error.wav", false, false, false,10,10, "")
if(GetLocalPlayer() == p)then
if(s != "" and p != null)then
call ClearTextMessages()
call DisplayTimedTextToPlayer(p, 0.50, -1.00, 2.00, "|cffffcc00" + s + "|r")
endif
call StartSound(so)
endif
call KillSoundWhenDone(so)
endfunction
But the sound ain't playing.
Thanks for the helpers!