Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Sleep in seconds not M/S

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
mer0x
Advanced Cheater
Reputation: 0

Joined: 06 Jan 2008
Posts: 63

PostPosted: Sun Feb 03, 2008 9:07 pm    Post subject: Sleep in seconds not M/S Reply with quote

Code:

Sleep(SleepTime * 1000)
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sun Feb 03, 2008 9:35 pm    Post subject: Reply with quote

Ok?

So what?

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Feb 03, 2008 9:37 pm    Post subject: Reply with quote

only a complete dumbass couldnt figure that one out...
there is absolutely no point in this thread...

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Feb 03, 2008 9:53 pm    Post subject: Reply with quote

holy shit revelation of the century.
Back to top
View user's profile Send private message
Cx
Master Cheater
Reputation: 0

Joined: 27 Jul 2007
Posts: 367

PostPosted: Sun Feb 03, 2008 10:22 pm    Post subject: Reply with quote

Haha.
_________________

armed with this small butterfly net
i will face the world alone
& never be lonely.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Feb 03, 2008 10:31 pm    Post subject: Reply with quote

even easier

Code:

sleep(SleepTime)

_________________
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sun Feb 03, 2008 11:00 pm    Post subject: Reply with quote

appalsap wrote:
even easier

Code:

sleep(SleepTime)


Code:

SleepTime = 4;
sleep(SleepTime);


Not the intended output.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sun Feb 03, 2008 11:21 pm    Post subject: Reply with quote

http://www.opengroup.org/onlinepubs/000095399/functions/sleep.html
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

Joined: 09 May 2003
Posts: 25956
Location: The netherlands

PostPosted: Mon Feb 04, 2008 12:14 am    Post subject: Reply with quote

and for those that don't get it. Sleep(xxx) and sleep(xxx) are different functions...
_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Mon Feb 04, 2008 9:47 am    Post subject: Reply with quote

Ahhh

I see.

My bad, Appal. ^-^

~~

Offtopic:

Happy birthday to me!

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Mon Aug 04, 2008 11:57 pm    Post subject: Reply with quote

EVEN EASIER

Code:

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int temp;

void SleepForNSeconds (int n, int *t)
{
   if ((n==(*t)) ? 0 : 1 + 0*(*t = n,n *= 100,n *= n,n /= 10)) goto labial;
   printf("blah\n");
   memcpy(&n,t,sizeof(int));
   SleepForNSeconds(n,t);
labial:
   printf("%i\n",((1L<<10)-24)**t);
   sleep(((1L<<10)-24)*(*t));
}

int main()
{
   int SleepTime = 4;  //in seconds
   SleepForNSeconds(SleepTime, &temp);

   return(0);
}


_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Aug 05, 2008 12:48 am    Post subject: Reply with quote

nog_lorp wrote:
EVEN EASIER

Code:

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int temp;

void SleepForNSeconds (int n, int *t)
{
   if ((n==(*t)) ? 0 : 1 + 0*(*t = n,n *= 100,n *= n,n /= 10)) goto labial;
   printf("blah\n");
   memcpy(&n,t,sizeof(int));
   SleepForNSeconds(n,t);
labial:
   printf("%i\n",((1L<<10)-24)**t);
   sleep(((1L<<10)-24)*(*t));
}

int main()
{
   int SleepTime = 4;  //in seconds
   SleepForNSeconds(SleepTime, &temp);

   return(0);
}



That is disgusting code o.o

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Aug 05, 2008 2:28 am    Post subject: Reply with quote

Don't bump old topics, locked / warned.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites