cheat-engine/example scripts/gettime.CEC

21 lines
313 B
Text
Raw Permalink Normal View History

2011-07-04 19:52:19 +00:00
#include <time.h>
#include <string.h>
char sec[50];
struct tm *timep;
time_t c;
c=time(0);
timep=localtime(&c);
sprintf(sec,"sec=%d",timep->tm_sec);
ce_showmessage(sec);
if (timep->tm_sec>=30)
ce_showmessage("bigger");
else
ce_showmessage("smaller");
ce_showmessage("still allive");