• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[help] Problem with loop in sound

marcoshps11

New Member
Joined
Jan 29, 2011
Messages
25
Reaction score
0
Hello, how can i set not to loop ?


Code:
function playSound(sound)
    rcSoundChannel:enqueue(sound, 0)
    setLabel(clearName(sound))
end

function onExtendedOpcode(protocol, code, buffer)

local path = "/sounds/"..buffer
if g_resources.fileExists(path) then
  playSound(path)
end
end
 
try use play instead enqueue, example:

Lua:
rcSoundChannel:play(sound, 0)
 
Last edited:
Back
Top