sorry man i was raging after reading all the previous comments.
I'll help you if I can but it would really make it easier if you read a couple of C++ TUTs.
this is your function
Code:
void RunConsoleCommand(char *command)// function RunConsoleCommand
{
typedef int (__cdecl* RunConsoleCommand_t)(char *cmd);
RunConsoleCommand_t RCC = (RunConsoleCommand_t) 0x4A4750;//Engine Address, NOT CSHELL!!
RCC(command);
delete command;
}
you can't just call your function in empty space you should have it in a loop or something
Code:
void main()// this code won't actually work but u get the idea
{
while (1) //your loop
RunConsoleCommand("ShowFps 1" ); //call to function RunConsoleCommand
}