wait

imanuel1322

Member
Joined
Nov 12, 2014
Messages
15
Reaction score
0
How do I make a waiting 2 seconds and then do what I want?
like sleep(2000);
- s0biet
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
cTime = 0;
delay = 2000;

if (cTime < (GetTickCount() - delay)) {
	//do stuff here
	cTime = GetTickCount();
}
 

imanuel1322

Member
Joined
Nov 12, 2014
Messages
15
Reaction score
0
springfield link said:
Code:
cTime = 0;
delay = 2000;

if (cTime < (GetTickCount() - delay)) {
	//do stuff here
	cTime = GetTickCount();
}
this is not working
When I press it is not waiting 2 seconds it straight sends the message chat "asd"
http://pastebin.com/QWPd1zbv
 
Top