Jack Posted November 20, 2012 Share Posted November 20, 2012 Hi. Is this a correct use of the opcode 05E9: 05E7: [email protected] = car [email protected] struct 000A: [email protected] += 0x1B0 // passenger pointer (VC)05E0: [email protected] = read_memory [email protected] size 4 virtual_protect 0 05E9: [email protected] = ped_struct [email protected] handle // ???048F: actor [email protected] remove_weapons ? When I loop the code that I just show you the game crashes at 048F (sometimes immediately and sometimes after a few iterations - I mean sometimes the code works). I've never used that opcode before so I'm not quite sure how to proced. And I confirmed the game crashing point (048F) with Link2012 scm log. Thanks for reading this. Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Wesser Posted November 20, 2012 Share Posted November 20, 2012 You should check for a valid pointer. Passenger's seat can be empty. 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
Jack Posted November 20, 2012 Author Share Posted November 20, 2012 Yep problem solved. Thanks Wesser . Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Cell Tennyson Posted November 24, 2012 Share Posted November 24, 2012 Mr jack jones i don't undestand the use of mermory hacking in vc cleo scripting.. why always it starts with 0x can you teach me..??? Link to comment Share on other sites More sharing options...
Jack Posted November 24, 2012 Author Share Posted November 24, 2012 It's not always starting with 0x. If you decompile the scrypt then it won't have 0x. That 0x means that the address is in hex. So use that 0x only when the address is in hex: 000A: [email protected] += 0x1B0 is the same thing as: 000A: [email protected] += 432 Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now