What do you mean??
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?
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 addOk I tested it like this just to get used to itCode:"using namespace std;"?
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.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 }
Last edited by doofbla; 07-29-2010 at 12:02 AM.