PushToConsole("NAME","data") question

Posts 16 of 6 · Page 1 of 1
PushToConsole("NAME","data") question
Is the PushToConsole function already there or do i have to define it bymyself like
Code:
void PushToConsole(string Name,Dword data)
{
.
.
.
}
?
What do you mean??
u know that string doesnt work right even if you use <strings>
void PushToConsole(std::string Name,Dword data)
{
const char* blah blah = (name + data);
ect.

return blah blah;
}

figure it out on your own
ehm okay let me ask in a different way

in the hacks you do sometimes pushtoconsolecommands in this way
Code:
if(GetAsyncKeyState(VK_F6)<0)
{
PushToConsole("ShowFps", 1)
}

can i just write it down like this in my code or will i got a failure because PushToConsole is unknown?
Quote Originally Posted by doofbla View Post
ehm okay let me ask in a different way

in the hacks you do sometimes pushtoconsolecommands in this way
Code:
if(GetAsyncKeyState(VK_F6)<0)
{
PushToConsole("ShowFps", 1)
}

can i just write it down like this in my code or will i got a failure because PushToConsole is unknown?
ow that nah its for my source thats not found yet i gave a part of it above all you need to add is this between name and value
[php]
int/*or what ever*/ PTC (std::string Name, int Value)
{
const char* fail = (Name + " " + Value);
return fail;
}
[/php]
voids dont have a return value.
ok thanks for your answers =)))

@ KuroTenish would it also be okay to add
Code:
"using namespace std;"?
Ok I tested it like this just to get used to it

Code:
#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
}
but it says it cannot convert from const char* to int also if i dont use int but string char or const char it dont work because the data types dont work together.
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?