How Do I Use a ACF Custom Field To Add A Slider ID?

You need to use get_field() function instead. It will RETURN the value instead of printing.
So, your code will be:

soliloquy( get_field( 'slider' ) );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)