First use add_options_page()
– shorter wrapper, better practice.
Second you need to save its return in some (global or static) variable. That is often used thingie and confusingly referenced by different names in documentation. Global $hook_suffix
holds such value for current page.
function create_admin_pages() {
global $my_page;
$my_page = add_options_page(...
From there it is something like this:
add_action('admin_enqueue_scripts', 'enqueue_script');
function enqueue_script($hook_suffix) {
global $my_page;
if ($my_page == $hook_suffix)
wp_enqueue_script('my_script', plugins_url('my_script.js', __FILE__), array('jquery'));
}