Reaction Test Timer
#1

Solved - Thanks
Reply
#2

You can use the GetTickCount function to determine the difference from the time the question was asked til the first correct reaction is done (OnReactionWin).
Reply
#3

Can you give me any example ?
Like how can I bring it up and make it.
Reply
#4

pawn Код:
// Near top of script
new count;

// When the question is sent
count = GetTickCount();

// When answered
printf("It took %d to get a right answer!", GetTickCount() - count);
count = 0;
Reply
#5

And how to make the answer in SECONDS ?
Reply
#6

I'm assuming it's returning it in milliseconds? If so, just divide the answer by 1000.
pawn Код:
printf("It took %d second to get a right answer!", ( GetTickCount( ) - count ) / 1000 );
Reply
#7

Thanks. Problem Solved
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)