Slider Questions

Started by Sir Bob, Sun 04/12/2005 05:14:44

Previous topic - Next topic

Sir Bob

Having problems with Slider.

Error:
"underdefined symbol 'sldVolume'"

Script:
Code: ags
#sectionstart slidesound_change
function slidesound_change(GUIControl *conrol, MouseButton slider)  {
  
  SetSoundVolume(sldVolume.Value);
}
#sectionend slidesound_change

Akumayo

make sure sldVolume is assigned as the name of your slider.
"Power is not a means - it is an end."

Elliott Hird

it looks like slidesound, why not use that?

Sir Bob

#3
Error:
"Error: run_text_script1: error -1 using 'slidesound_change':
Wrong number of parameters to exported functions 'slidesound_change' (expected 2, supplied 1)

Script:
Code: ags
#sectionstart slidesound_change
function slidesound_change(GUIControl *conrol, MouseButton slider)Ã,  {
Ã,  
Ã,  SetSoundVolume(slidesound.Value);
}
#sectionend slidesound_change


And, how do you cange what messageboxes look like?

Ashen

Slider functions don't have the MouseButton parameter - it should look like::
Code: ags

#sectionstart slidesound_change
function slidesound_change(GUIControl *control)  {
 
  SetSoundVolume(slidesound.Value);
}
#sectionend slidesound_change


Where did that function come from - did you paste it in from somewhere else? (Just curious, as auto-created ones wouldn't have had the extra parameter.)


You mean the black and white box when you call Display("text"); (or 'Display message' from the interaction ediitor)? You need to create a custom Text Window GUI - look up "Customized Text Windows" in the manual.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk