Jerry123 Posted August 28, 2010 Share Posted August 28, 2010 (edited) I want to use custom Text in my Script without a FXT or GXT file but it crashes I used @v and 0ACA but they don't work. How I use them properly? 0@v = "String"0ACA: show_text_box 0@v Thanks Anyone? Edited August 28, 2010 by Jerry123 Link to comment https://gtaforums.com/topic/457989-custom-text/ Share on other sites More sharing options...
Jerry123 Posted August 28, 2010 Author Share Posted August 28, 2010 Anyone can answer Link to comment https://gtaforums.com/topic/457989-custom-text/#findComment-1060102656 Share on other sites More sharing options...
BnB Posted August 28, 2010 Share Posted August 28, 2010 (edited) {$CLEO}0ACA: show_text_box "TEST"0A93: {$CLEO}0ADF: add_dynamic_GXT_entry "TEST" text "BnB"00BA: show_text_styled GXT "TEST" time 1000 style 2 // Beefy Baron 0A93: {$CLEO}0ADF: add_dynamic_GXT_entry "TEST" text "BnB"033E: set_draw_text_position 320.0 180.333 GXT "TEST" // Push 0A93: {$CLEO}thread 'MSG_TEST'wait 50000AB1: call_scm_func @LabelMSGMain 1 @LabelMSG01wait 50000AB1: call_scm_func @LabelMSGMain 1 @LabelMSG020A93: end_custom_thread:LabelMSGMain0A9F: 1@ = current_thread_pointer1@ += 160A8D: 1@ = read_memory 1@ size 4 virtual_protect 00062: 1@ -= 0@ // (int)1@ += 4if0AA9: is_game_version_originaljf @LabelMSGVersion1010AA5: call 0x588BE0 num_params 4 pop 4 0 0 0 1@ // v1.0jump @LabelMSGMain02:LabelMSGVersion1010AA5: call 0x5893B0 num_params 4 pop 4 0 0 0 1@ // v1.01:LabelMSGMain020AB2: ret 0:LabelMSG010900: "You are playing...":LabelMSG020900: "GTA San Andreas"0000: nop Script by Rapier Edited August 28, 2010 by BnB Link to comment https://gtaforums.com/topic/457989-custom-text/#findComment-1060102713 Share on other sites More sharing options...
TheSiggi Posted August 28, 2010 Share Posted August 28, 2010 sure its possible with CLEO 4 its even posible to do "calcuations" with strings Deji explained it here cheers Link to comment https://gtaforums.com/topic/457989-custom-text/#findComment-1060102897 Share on other sites More sharing options...
Jerry123 Posted August 28, 2010 Author Share Posted August 28, 2010 Thanks you all but why is 0@v not working I readed it here http://sannybuilder.com/forums/viewtopic.php?pid=11178 Link to comment https://gtaforums.com/topic/457989-custom-text/#findComment-1060102932 Share on other sites More sharing options...
Silent Posted August 28, 2010 Share Posted August 28, 2010 1@v = "ABCD"0AC7: 0@ = var 1@ offset0@ += 2 // skip the first 2 characters0A8D: 1@ = read_memory 0@ size 2 virtual_protect 0 // read the next 2 characters0AD0: show_text_box 1@v See this? 1@v == 1@ (in this case), and it is var offset. So if you want to show text from @v, then use: 0@v = "String"0AC7: 5@ = var 0@ offset0ACA: show_text_box 5@ Should work, but didn't tested it. Link to comment https://gtaforums.com/topic/457989-custom-text/#findComment-1060102991 Share on other sites More sharing options...
Jerry123 Posted August 29, 2010 Author Share Posted August 29, 2010 1@v = "ABCD"0AC7: 0@ = var 1@ offset0@ += 2 // skip the first 2 characters0A8D: 1@ = read_memory 0@ size 2 virtual_protect 0 // read the next 2 characters0AD0: show_text_box 1@v See this? 1@v == 1@ (in this case), and it is var offset. So if you want to show text from @v, then use: 0@v = "String"0AC7: 5@ = var 0@ offset0ACA: show_text_box 5@ Should work, but didn't tested it. It works but the Text is bugged(missing letters, $, %, & WTF) Link to comment https://gtaforums.com/topic/457989-custom-text/#findComment-1060103757 Share on other sites More sharing options...
Wesser Posted August 29, 2010 Share Posted August 29, 2010 That's because you pass a pointer which may contains ASCII code into its offset. You must read memory with 0A8D. Link to comment https://gtaforums.com/topic/457989-custom-text/#findComment-1060103869 Share on other sites More sharing options...
Jerry123 Posted August 29, 2010 Author Share Posted August 29, 2010 That's because you pass a pointer which may contains ASCII code into its offset. You must read memory with 0A8D. Thanks but what do I read? I tried this but it crashes 0@v = "BLIND fdkjf"0AC7: 1@ = var 0@ offset0A8D: 1@ = read_memory 1@ size 4 virtual_protect 00ACA: show_text_box 1@ Link to comment https://gtaforums.com/topic/457989-custom-text/#findComment-1060103897 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