• 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!

Error compiling in Dev C++

The Frenesy

Member
Joined
Sep 3, 2020
Messages
32
Solutions
1
Reaction score
7
I am trying to add the sendScreanSound function in the effects to reproduce sound effect in OTClient, but the following error occurred while compiling.

This sendScreanSound function refers to a sound system in OTClient that I found on another forum.

Screenshot_5.png
 
Oh boy
in your case simply copy paste wont work because copied code is from other version/codebase.
Without code will be hard to help you
 
Oh boy
in your case simply copy paste wont work because copied code is from other version/codebase.
Without code will be hard to help you

I'm trying to come up with some way to make the effects play sounds in OTClient.

The system I'm using is this.

My biggest difficulty is being to put sound effects on the abilities of the monsters.

It would be nice to have a system that checks the area of the character's field of view, so that each effect that appears, plays a sound corresponding to the effect.
 
Did you see Heyron's post 16 hours ago?

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
 
Back
Top