void PushToConsole(string Name,Dword data)
{
.
.
.
}
let me ask in a different wayif(GetAsyncKeyState(VK_F6)<0)
{
PushToConsole("ShowFps", 1)
}
i gave a part of it above all you need to add is this between name and value "using namespace std;"?
#include "stdafx.h"
#include "iostream"
#include "windows.h"
#include "string"
using namespace std;
int number=0;
string name=""
int Wert=0;
int PTC(string command,int value)
{
const char* result = (command + " " + value);
return result;
}
int main()
{
while(true)
{
cout << "Enter a name" << endl;
cin >> name;
cout << "Enter a value" << endl;
cin >> Wert;
cout << PTC(name,Wert);
}
return 0
}