Thread: C or C++ or C#

Results 1 to 6 of 6
  1. #1
    richard1994x's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    C or C++ or C#

    I need make Class/Struct, but i dont know what program use.

    I have this:
    Code:
    Game Version.............1.4.382 (TeknoMW3)
    Entity...................0x00A08630
    
    #define OFFS_Entity 0x00A08630
    *I noob in programming C, but i expert in programming Pascal. I want learn C.

    Tutorial link?

  2. #2
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,876
    My Mood
    Psychedelic
    Quote Originally Posted by richard1994x View Post
    I need make Class/Struct, but i dont know what program use.

    I have this:
    Code:
    Game Version.............1.4.382 (TeknoMW3)
    Entity...................0x00A08630
    
    #define OFFS_Entity 0x00A08630
    *I noob in programming C, but i expert in programming Pascal. I want learn C.

    Tutorial link?
    C is the older version to C++ so I'd recommend C++.
    Also here:
    Code:
    typedef struct
    {
    	char _0x0000[0x2];                               //0x0
    	short Valid;                                     //0x2
    	char _0x0004[0x10];                              //0x4
    	Vector Origin;                                   //0x14
    	Vector Angles;                                   //0x20
    	char _0x002C[0x3C];                              //0x2C
    	int Flags;                                       //0x68
    	char _0x006C[0xC];                               //0x6C
    	Vector OldOrigin;                                //0x78
    	char _0x0084[0x18];                              //0x84
    	Vector OldAngles;                                //0x9C
    	char _0x00A8[0x28];                              //0xA8
    	int ClientNumber;                                //0xD0
    	short Type;                                      //0xD4
    	char _0x00D6[0x12];                              //0xD6
    	Vector NewOrigin;                                //0xE8
    	char _0x00F4[0x1C];                              //0xF4
    	Vector NewAngles;                                //0x110
    	char _0x011C[0x7C];                              //0x11C
    	byte WeaponID;                                   //0x198
    	char _0x0199[1];				 //0x0199
    	short Alive;					 //0x01A0
    	char _0x019C[8];				 //0x01A2
    	float Flags2;				  	 //0x01A4
    	char _0x01A8[40];			 	 //0x01A8
    	int IsAlive;                                     //0x1D0
    	char _0x01D4[0x24];                              //0x1D4
    } Entity_T; //[Size: 0x1F8]
    Last edited by Kenshin13; 03-15-2013 at 01:33 PM.

  3. #3
    richard1994x's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    I down Microsoft Visual C# 2010 Express.

    This is in C#?

    Code:
    typedef struct {
    	char _0x0000[0x2];                               //0x0
    	short Valid;                                     //0x2
    	char _0x0004[0x10];                              //0x4
    	Vector Origin;                                   //0x14
    	Vector Angles;                                   //0x20
    	char _0x002C[0x3C];                              //0x2C
    	int Flags;                                       //0x68
    	char _0x006C[0xC];                               //0x6C
    	Vector OldOrigin;                                //0x78
    	char _0x0084[0x18];                              //0x84
    	Vector OldAngles;                                //0x9C
    	char _0x00A8[0x28];                              //0xA8
    	int ClientNumber;                                //0xD0
    	short Type;                                      //0xD4
    	char _0x00D6[0x12];                              //0xD6
    	Vector NewOrigin;                                //0xE8
    	char _0x00F4[0x1C];                              //0xF4
    	Vector NewAngles;                                //0x110
    	char _0x011C[0x7C];                              //0x11C
    	byte WeaponID;                                   //0x198
    	char _0x0199[1];				 //0x0199
    	short Alive;					 //0x01A0
    	char _0x019C[8];				 //0x01A2
    	float Flags2;				  	 //0x01A4
    	char _0x01A8[40];			 	 //0x01A8
    	int IsAlive;                                     //0x1D0
    	char _0x01D4[0x24];                              //0x1D4
    } Entity_T; //[Size: 0x1F8]

  4. #4
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,876
    My Mood
    Psychedelic
    Quote Originally Posted by richard1994x View Post
    I down Microsoft Visual C# 2010 Express.

    This is in C#?

    Code:
    typedef struct {
    	char _0x0000[0x2];                               //0x0
    	short Valid;                                     //0x2
    	char _0x0004[0x10];                              //0x4
    	Vector Origin;                                   //0x14
    	Vector Angles;                                   //0x20
    	char _0x002C[0x3C];                              //0x2C
    	int Flags;                                       //0x68
    	char _0x006C[0xC];                               //0x6C
    	Vector OldOrigin;                                //0x78
    	char _0x0084[0x18];                              //0x84
    	Vector OldAngles;                                //0x9C
    	char _0x00A8[0x28];                              //0xA8
    	int ClientNumber;                                //0xD0
    	short Type;                                      //0xD4
    	char _0x00D6[0x12];                              //0xD6
    	Vector NewOrigin;                                //0xE8
    	char _0x00F4[0x1C];                              //0xF4
    	Vector NewAngles;                                //0x110
    	char _0x011C[0x7C];                              //0x11C
    	byte WeaponID;                                   //0x198
    	char _0x0199[1];				 //0x0199
    	short Alive;					 //0x01A0
    	char _0x019C[8];				 //0x01A2
    	float Flags2;				  	 //0x01A4
    	char _0x01A8[40];			 	 //0x01A8
    	int IsAlive;                                     //0x1D0
    	char _0x01D4[0x24];                              //0x1D4
    } Entity_T; //[Size: 0x1F8]
    Does it look like C#? No, it's C++

  5. #5
    richard1994x's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    How to convert to C#? I need tutorial, direction...

  6. #6
    rawr im a tiger's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    On the edge of Sanity
    Posts
    238
    Reputation
    40
    Thanks
    1,017
    My Mood
    Angelic
    Old and definitely not the optimal way to do things, but:

    http://www.mpgh.net/forum/604-call-d...structs-c.html