how can i make my lite-c program exit after few seconds?

Posted By: Muhsin

how can i make my lite-c program exit after few seconds? - 11/30/09 13:15

Hi!

how can i make my lite-c program exit after few seconds?


thanks


- Muhsin Kaymak
Posted By: Quad

Re: how can i make my lite-c program exit after few seconds? - 11/30/09 13:17

wait(-3);//3sn bekle
sys_exit("");//programi kapat
Posted By: Muhsin

Re: how can i make my lite-c program exit after few seconds? - 11/30/09 13:25

OK, sagol!!
Posted By: kadas

Re: how can i make my lite-c program exit after few seconds? - 11/30/09 14:02

wait(-3); // niye +3 yazmadik ? //why we dont write +3
Posted By: Quad

Re: how can i make my lite-c program exit after few seconds? - 11/30/09 14:05

3 ( or +3) waits for 3 "frames", -3 waits for 3 "seconds".
Posted By: kadas

Re: how can i make my lite-c program exit after few seconds? - 11/30/09 14:33

ok tahnx
if fps speed = 60; +3 or -3 it doesn't matter.That is right?
Posted By: Liamissimo

Re: how can i make my lite-c program exit after few seconds? - 11/30/09 14:38

Right, it does't matter with speed it is laugh
Posted By: Quad

Re: how can i make my lite-c program exit after few seconds? - 11/30/09 14:39

if fps is 60

it will wait 3/60 secons when you call wait(3);

if you call wait(-3); it will wait 3 seconds regardless from frame rate.
Posted By: kadas

Re: how can i make my lite-c program exit after few seconds? - 11/30/09 15:41

@Quadraxas: yes I know
© 2024 lite-C Forums