Thread: understanding

Results 1 to 6 of 6
  1. #1
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    124

    understanding

    Code:
    typedef PlayerInfo* (__thiscall *lpGetPlayerByIndex)(unsigned long ulThis,int index, int unk);
    lpGetPlayerByIndex GetPlayerByIndex; //0x3715DD10
    
    typedef PlayerInfo* (__thiscall *lpGetLocalPlayer)(unsigned long ulThis);
    lpGetLocalPlayer GetLocalPlayer;
    this part of a base really confuses me and i was wondering if anyone could explain it to me? like could someone go through each part and explain each one and why it is there? i know what it is used for but i dont understand it at all.

  2. #2
    ++PashaAmd++'s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    229
    Reputation
    11
    Thanks
    37
    whats there to not understand >_<

  3. #3
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    124
    Explain it to me plox

  4. #4
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    They is a function in combat arms called "GetPlayerByIndex" and it is located at the address (of what every addy)
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  5. #5
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    124
    Ohh lol thanks topblast it llooked so confusin if u didnt no it was a function

  6. #6
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,067
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    typedef existing_type new_type_name ;
    "C++ allows the definition of our own types based on other existing data types"
    That's all you're doing with those two classes (PlayerInfo and GetPlayerByIndex according to topblast)

    Source: cplusplus.com
    Last edited by markoj; 05-23-2011 at 07:14 PM.
    Dont ban me