Didn't want to start a new post, so i'll resurrect my old one...
var sound_handle = 0; // variable sound handle
var* pnt_to_sound = &sound_handle; // pointer to handle
function TestPointer()
{
if(pnt_to_sound == NULL)
{
error("Null Pointer!");
}
else
{
*pnt_to_sound = snd_play("hi.wav",100,0);
}
}
void main()
{
on_space = TestPointer;
}
Pressing 'space' gives me the 'NUll Pointer' message, but i'm not sure why because it is clearly assigned an address.