Alerta com X de Cap


Const

Cap = 20

while not terminated do
begin
UpdateWorld;
if self.capacity < Cap then
PlaySound('C:\Windows\Media\notify.wav');
Sleep(100);
end;