Guys is the following, I already discovered my mistake and many:
Go to data / lib / AdvancedSoundFunctions.lua and paste all the code below:
function sendSound (cid, sound, loop)
if not loop then
doPlayerSendExtendedOpcode (cid, 85, sound .. "|" .. "false")
elseif loop == true then
doPlayerSendExtendedOpcode (cid, 85, sound .. "|" .. "true")
elseif loop == false then
doPlayerSendExtendedOpcode (cid, 85, sound .. "|" .. "false")
end
end
function pauseSound (cid)
doPlayerSendExtendedOpcode (cid, 81, "")
end
function sendSoundForall (sound)
for _, k in ipairs (getPlayersOnline ()) from
doPlayerSendExtendedOpcode (k, 85, sound)
end
end
function sendScreanSound (cid, sound)
for _, v in ipairs (getSpectators (getThingPosition (cid), 7, 5, true)) do
if (isPlayer (v)) then
doPlayerSendExtendedOpcode (v, 85, sound)
end
end
end
function sendScreanPosSound (sound, pos)
if getSpectators (pos, 7, 5, true) ~ = nil then
for _, v in ipairs (getSpectators (pos, 7, 5, true)) do
if (isPlayer (v)) then
doPlayerSendExtendedOpcode (v, 85, sound)
end
end
end
end
Sorted out.
Before the parameter was written:
doSendPlayerExtendedOpcode
Now it is:
doPlayerSendExtendedOpcode