typedef int (__cdecl* RunConsoleCommand_t)(char* cmd); RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)

if ( showfps > 0 )
pRunConsoleCommand ("ShowFps 1");
Sleep(100);
}else{
pRunConsoleCommand ("ShowFps 0");
Sleep(100);
if ( showfps > 0 ){
pRunConsoleCommand ("ShowFps 1");
}else{
pRunConsoleCommand ("ShowFps 0");
}
if ( nx > 0 ){
pRunConsoleCommand ("SkelModelStencil 1");
}else{
pRunConsoleCommand ("SkelModelStencil 0");
}
Sleep(10);
}
int showfps = 0; int showfps1 = 0;
if( showfps > 0 ){if( showfps1 != showfps ){
pRunConsoleCommand ("ShowFps 1");
showfps1 = showfps;
}
}else{
if( showfps1 != showfps ){
pRunConsoleCommand ("ShowFps 0");
showfps1 = showfps;
}}