Results 1 to 6 of 6
  1. #1
    doofbla's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Biel*****/Germany
    Posts
    369
    Reputation
    10
    Thanks
    179
    My Mood
    Psychedelic

    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)
    {
    .
    .
    .
    }
    ?

  2. #2
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    What do you mean??

  3. #3
    BCKP_KuroTenshi's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    32
    Reputation
    12
    Thanks
    14
    My Mood
    Inspired
    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

  4. #4
    doofbla's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Biel*****/Germany
    Posts
    369
    Reputation
    10
    Thanks
    179
    My Mood
    Psychedelic
    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?

  5. #5
    BCKP_KuroTenshi's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    32
    Reputation
    12
    Thanks
    14
    My Mood
    Inspired
    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.

  6. #6
    doofbla's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Biel*****/Germany
    Posts
    369
    Reputation
    10
    Thanks
    179
    My Mood
    Psychedelic
    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.
    Last edited by doofbla; 07-29-2010 at 12:02 AM.

Similar Threads

  1. Favorite Quote
    By EleMentX in forum Spammers Corner
    Replies: 13
    Last Post: 01-04-2020, 04:36 PM
  2. MPGH PM Chat Quote Thread
    By arunforce in forum Entertainment
    Replies: 39
    Last Post: 05-12-2013, 08:24 PM
  3. MPGH AIM Chat Quote Thread
    By ace76543 in forum Entertainment
    Replies: 30
    Last Post: 09-25-2011, 12:14 PM
  4. MPGH IRC Chat Quote Thread
    By i eat trees in forum Entertainment
    Replies: 746
    Last Post: 07-02-2011, 10:07 PM
  5. Quotes & Lists
    By radnomguywfq3 in forum General
    Replies: 15
    Last Post: 01-17-2008, 05:14 PM

Tags for this Thread