char* DATE(void)
{
static char cdate[20] = "";
struct tm * current_tm;
time_t current_time;
time (¤t_time);
current_tm = localtime (¤t_time);
sprintf( cdate, "%d-%02d-%d",current_tm->tm_mon+1,current_tm->tm_mday,current_tm->tm_year-100+2000);
return cdate;
}
if(panic)
{
if( GetAsyncKeyState( VK_CONTROL))
{
if( GetAsyncKeyState( VK_SPACE))
{
ExitGame(0);
}
}
}
/* #include */
#include <time.h>
float fLastTickCount=0.0f;
float fCurrentTickCount;
char CH_FPS [20];
/* MENU[MENUMAXITEMS]; */
int CH_NoFPS=0;
/* void RebuildMenu(void) */
MenuAddItem("Framerate:",(char **)CH_FPS,0,0,MENUTEXT);
/* HRESULT WINAPI myPresent */
if(CH_FPS)
{
fCurrentTickCount=clock() * 0.001f;
CH_NoFPS++;
if((fCurrentTickCount - fLastTickCount)>1.0f)
{
fLastTickCount=fCurrentTickCount;
sprintf(CH_FPS, "%d", CH_NoFPS);
CH_NoFPS=0;
}
}
struct Xpto {
int test;
}

Damn Xtrap 