#include "Camera.inc"
//IF NEEDED
native bool: camera_take_picture(const file_name[]);
// some versions of SDK do not have it in Camera.inc
#pragma pack 1
...
// save the picture
if (camera_take_picture("A:one.img")) // save on SD card
{
PlaySound(snd_cap_one); // shutter sound
// wait until done saving
while (get(property_cam_img_progress) != 0)
{
yield();
}
// now the picture is saved
PlaySound(snd_camera_saved);
}
else
{
PlaySound(snd_capture_error);
}
Thank you very much for your answer.