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: 93836" data-attributes="member: 56907"><p>Strange, can you try experimenting this script using your own pointers at R4, I don't have R4 currently:</p><p>[CODE]{$CLEO .cs}</p><p>0000: gxt examiner</p><p></p><p>alloc 31@ 1024</p><p>wait 5000</p><p></p><p>while true</p><p></p><p> // empty message</p><p> 0085: 30@ = 31@ // store the 1024 allocated bytes pointer</p><p> for 0@ = 1 to 256</p><p> 0A8C: write_memory 30@ size 4 value 0 virtual_protect 0</p><p> 30@ += 4</p><p> end</p><p> 0AB1: @ChatMsg 2 0xFF00FF00 31@</p><p> 0ACD: show_text_highpriority "showed Char Count: 1" time 250</p><p> //</p><p></p><p> 0085: 30@ = 31@ // store the 1024 allocated bytes pointer</p><p> for 0@ = 1 to 1023</p><p> wait 100</p><p> 0A8C: write_memory 30@ size 1 value 97 virtual_protect 0 // acii a</p><p> 30@++</p><p> 0AB1: @ChatMsg 2 0xFF00FF00 31@</p><p> 0AD1: show_formatted_text_highpriority "showed Char Count: %d" time 250 0@</p><p> end</p><p></p><p>end</p><p></p><p>const</p><p> // R1 0.3.7</p><p> SAMP_CHAT_INFO_OFFSET = 0x21A0E4</p><p> FUNC_ADDTOCHATWND = 0x64010</p><p> FUNC_SAY = 0x57F0</p><p>end</p><p></p><p>:ChatMsg</p><p>IF 0AA2: 2@ = "samp.dll"</p><p>THEN</p><p> 0085: 3@ = 2@</p><p> 3@ += SAMP_CHAT_INFO_OFFSET</p><p> 0A8D: 3@ = readMem 3@ sz 4 vp 1</p><p> 0085: 4@ = 2@</p><p> 4@ += FUNC_ADDTOCHATWND</p><p> 0AA6: call 4@ struct 3@ num_params 5 pop 0 params 0 0@ 0 1@ 8</p><p>END</p><p>0AB2: 0[/CODE]</p><p></p><p>That script should not crash even when showing 1023 characters. I tried experimenting this script on mine and it does not crash. If it crashes to you the moment it was executed, then the R4 offset pointers you used might be wrong.</p></blockquote><p></p>
[QUOTE="ajom, post: 93836, member: 56907"] Strange, can you try experimenting this script using your own pointers at R4, I don't have R4 currently: [CODE]{$CLEO .cs} 0000: gxt examiner alloc 31@ 1024 wait 5000 while true // empty message 0085: 30@ = 31@ // store the 1024 allocated bytes pointer for 0@ = 1 to 256 0A8C: write_memory 30@ size 4 value 0 virtual_protect 0 30@ += 4 end 0AB1: @ChatMsg 2 0xFF00FF00 31@ 0ACD: show_text_highpriority "showed Char Count: 1" time 250 // 0085: 30@ = 31@ // store the 1024 allocated bytes pointer for 0@ = 1 to 1023 wait 100 0A8C: write_memory 30@ size 1 value 97 virtual_protect 0 // acii a 30@++ 0AB1: @ChatMsg 2 0xFF00FF00 31@ 0AD1: show_formatted_text_highpriority "showed Char Count: %d" time 250 0@ end end const // R1 0.3.7 SAMP_CHAT_INFO_OFFSET = 0x21A0E4 FUNC_ADDTOCHATWND = 0x64010 FUNC_SAY = 0x57F0 end :ChatMsg IF 0AA2: 2@ = "samp.dll" THEN 0085: 3@ = 2@ 3@ += SAMP_CHAT_INFO_OFFSET 0A8D: 3@ = readMem 3@ sz 4 vp 1 0085: 4@ = 2@ 4@ += FUNC_ADDTOCHATWND 0AA6: call 4@ struct 3@ num_params 5 pop 0 params 0 0@ 0 1@ 8 END 0AB2: 0[/CODE] That script should not crash even when showing 1023 characters. I tried experimenting this script on mine and it does not crash. If it crashes to you the moment it was executed, then the R4 offset pointers you used might be wrong. [/QUOTE]
Name
Verification
What is a common type of content that users share on ugbase.eu?
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