I'm trying to pass a char string to a function i do it like i always do but suddenly it gives warnings it may be the function to which i pass the string but i do not know for certain.
ghtSound.c: In functie 'SoundLoad':
ghtSound.c:48: let op: passing argument 1 of 'Sample_Load' discards qualifiers from pointer target type
ghtSound.c:52: let op: passing argument 1 of 'Sample_Load' discards qualifiers from pointer target type
ghtSound.c:56: let op: passing argument 1 of 'Sample_Load' discards qualifiers from pointer target type
I can get it to run but then my game crashes when i want to play a sound.
My answer was only for the compile warnings - it wouldn't cause your game to crash. Can't help you with the crash. Check the return value from Sample_Load() - is it valid? If you don't play a sound, does it still crash? You have to narrow down the cause of the crash more.