Hey, I got some errors.
if(isinst)
{
if(inc<0)
{
instvol = max(dest,instvol+inc);
}
else
{
instvol = min(dest,instvol+inc);
}
if(code <>"")
{
execute_string(code);
}
FMODInstanceSetVolume(group,instvol);
if(instvol = dest)
{
instance_destroy();
}
exit;
}
//show_message("G:"+string(group)+"F:"+string(instvol)+"T:"+string(dest)+"I:"+string(inc)+"GOT:"+string(FMODGroupGetVolume(group)));
if(inc<0)
{
instvol = max(dest,instvol+inc);
}
else
{
instvol = min(dest,instvol+inc);
}
FMODGroupSetVolume(group,instvol);
if(instvol = dest)
{
instance_destroy();
}
and
if(isinst)
{
if(inc<0)
{
instvol = max(dest,instvol+inc);
}
else
{
instvol = min(dest,instvol+inc);
}
if(code <>"")
{
execute_string(code);
}
FMODInstanceSetVolume(group,instvol);
if(instvol = dest)
{
instance_destroy();
}
exit;
}
//show_message("G:"+string(group)+"F:"+string(instvol)+"T:"+string(dest)+"I:"+string(inc)+"GOT:"+string(FMODGroupGetVolume(group)));
if(inc<0)
{
instvol = max(dest,instvol+inc);
}
else
{
instvol = min(dest,instvol+inc);
}
FMODGroupSetVolume(group,instvol);
if(instvol = dest)
{
instance_destroy();
}
if(!isinst)
{
if(inc<0)
{
curpan = max(dest,curpan+inc);
}
else
{
curpan = min(dest,curpan +inc);
}
curpan-=1;
if(code <>"")
{
execute_string(code);
}
curpan+=1;
//show_message("G:"+string(group)+"F:"+string(curpan)+"T:"+string(dest)+"I:"+string(inc)+"GOT:");
FMODGroupSetPan(group,curpan -1);
if(curpan = dest)
{
instance_destroy();
}
exit;
}
if(inc<0)
{
curpan = max(dest,curpan +inc);
}
else
{
curpan = min(dest,curpan +inc);
}
curpan-=1;
if(code <>"")
{
execute_string(code);
}
curpan+=1;
FMODInstanceSetPan(group,curpan -1);
if(curpan = dest)
{
instance_destroy();
}