Home
Resources
Latest reviews
Search resources
Forums
New posts
Search forums
Members
Current visitors
New profile posts
Search profile posts
What's new
New posts
New resources
New profile posts
Latest activity
Rules
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Community
Spammm
[Fixed] Problem - memory
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ajom" data-source="post: 104511" data-attributes="member: 56907"><p>You might be crashing because the string you have scanned does not have a NULL terminator? reading a whole 240 bytes might not have a null terminator at the end. Maybe its safe to read "~y~KIMBA!!!~n~SPAUSKITE ~r~[MOUSE1]." as a 37 bytes string instead of 240 bytes or with CE inspect the size that has a null terminator at the end of that string at pointer (0xBAACC0 + 200) .</p><p></p><p>What is the server IP anyway? If you are just trying to detect if that message pop up you can just read pointer 0xBAACC0 like:</p><p>Some Test, when the message "~y~KIMBA!!!~n~SPAUSKITE ~r~[MOUSE1]." pops up, 0xBAACC0 is overwritten by that message:</p><p>[CODE]{$CLEO .cs}</p><p>0000: gxt examiner</p><p></p><p>while true</p><p> wait 0</p><p> 0@ = 0xBAACC0</p><p> 0@ += 0x0 // GTA SA default center pop up pointer offset</p><p> 0ACD: show_text_highpriority 0@ time 100 // this opcode can show 60 characters, above that makes it crash I think. but pointer 0xBAACC0 is exactly 240 bytes in size</p><p>end</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="ajom, post: 104511, member: 56907"] You might be crashing because the string you have scanned does not have a NULL terminator? reading a whole 240 bytes might not have a null terminator at the end. Maybe its safe to read "~y~KIMBA!!!~n~SPAUSKITE ~r~[MOUSE1]." as a 37 bytes string instead of 240 bytes or with CE inspect the size that has a null terminator at the end of that string at pointer (0xBAACC0 + 200) . What is the server IP anyway? If you are just trying to detect if that message pop up you can just read pointer 0xBAACC0 like: Some Test, when the message "~y~KIMBA!!!~n~SPAUSKITE ~r~[MOUSE1]." pops up, 0xBAACC0 is overwritten by that message: [CODE]{$CLEO .cs} 0000: gxt examiner while true wait 0 0@ = 0xBAACC0 0@ += 0x0 // GTA SA default center pop up pointer offset 0ACD: show_text_highpriority 0@ time 100 // this opcode can show 60 characters, above that makes it crash I think. but pointer 0xBAACC0 is exactly 240 bytes in size end [/CODE] [/QUOTE]
Name
Verification
Name a popular topic discussed in the ugbase.eu community
Post reply
Home
Forums
Community
Spammm
[Fixed] Problem - memory
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top