Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Problem with rainbow zonetext


Adrean.
 Share

Recommended Posts

Hello guys,i decided to make this mod 3 days ago,since then this mod si freaking me out cuz i cannot find an algorith that works..

 

I want to make the zonetext mod with rainbow text,colors to pop out and in to make like a rainbow.

 

 

this is the mod.

//[email protected] = 0 [email protected] = 0 [email protected] = 0 [email protected] = 1 [email protected] = 0 0000: NOP :NONAME_37wait 0 gosub @NONAME_171 gosub @NONAME_226 gosub @NONAME_288 gosub @NONAME_337 if or  [email protected] == 1   [email protected] == 1   [email protected] == 1   [email protected] == 0 else_jump @NONAME_119 03F0: enable_text_draw 0 jump @NONAME_164 :NONAME_119if and   not Actor.Driving($PLAYER_ACTOR)00E1:   player $PLAYER_CHAR pressed_key 4 else_jump @NONAME_153 03F0: enable_text_draw 0 jump @NONAME_164 :NONAME_15303F0: enable_text_draw 1 gosub @NONAME_413 :NONAME_164jump @NONAME_37 :NONAME_1710A8D: [email protected] = read_memory 11989093 size 4 virtual_protect 0 if   [email protected] == 1 else_jump @NONAME_217 [email protected] = 1 jump @NONAME_224 :[email protected] = 0 :NONAME_224return :NONAME_2260A8D: [email protected] = read_memory 9873356 size 4 virtual_protect 0 if or  [email protected] == 1   [email protected] == 2 else_jump @NONAME_279 [email protected] = 1 jump @NONAME_286 :[email protected] = 0 :NONAME_286return :NONAME_288if 06B9:   cutscene_data_loaded else_jump @NONAME_328 if 82E9:   not cutscene_reached_end else_jump @NONAME_321 [email protected] = 1 :NONAME_321jump @NONAME_335 :[email protected] = 0 :NONAME_335return :NONAME_3370A8D: [email protected] = read_memory 12216172 size 4 virtual_protect 0 0A8D: [email protected] = read_memory 12231675 size 4 virtual_protect 0 if and  [email protected] == 2   [email protected] == 0 else_jump @NONAME_404 [email protected] = 0 jump @NONAME_411 :[email protected] = 1 :NONAME_411return :NONAME_413gosub @NONAME_581 if   [email protected] == 0 else_jump @NONAME_572 gosub @NONAME_627 gosub @NONAME_657 if or05AD:   s$93 == 'LA' // s$ == short  // Los Santos05AD:   s$93 == 'SF' // s$ == short  // San Fierro05AD:   s$93 == 'VE' // s$ == short  // Las Venturaselse_jump @NONAME_519 05A9: s$93 = 'CT' // s$ :NONAME_519if 05AD:   s$93 == 'SAN_AND' // s$ == short  // San Andreaselse_jump @NONAME_558 05A9: s$93 = 'CN' // s$ :NONAME_558gosub @NONAME_957 jump @NONAME_579 :NONAME_572gosub @NONAME_1067 :NONAME_579return :NONAME_581077E: get_active_interior_to [email protected] if   [email protected] == 0 else_jump @NONAME_618 [email protected] = 0 jump @NONAME_625 :[email protected] = 1 :NONAME_625return :NONAME_627Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])0843: get_zone_at [email protected] [email protected] [email protected] nameA_to s$93 // 8-byte string return :NONAME_657gosub @NONAME_1007 if   [email protected] == 0 else_jump @NONAME_696 05A9: s$95 = 'CS' // s$ :NONAME_696if   [email protected] == 1 else_jump @NONAME_728 05A9: s$95 = 'LA' // s$  // Los Santos:NONAME_728if   [email protected] == 2 else_jump @NONAME_760 05A9: s$95 = 'SF' // s$  // San Fierro:NONAME_760if   [email protected] == 3 else_jump @NONAME_792 05A9: s$95 = 'VE' // s$  // Las Venturas:NONAME_792if 05AD:   s$93 == 'SAN_AND' // s$ == short  // San Andreaselse_jump @NONAME_831 05A9: s$95 = 'SAN_AND' // s$  // San Andreas:NONAME_831if 05AD:   s$93 == 'LA' // s$ == short  // Los Santoselse_jump @NONAME_870 05A9: s$95 = 'LA' // s$  // Los Santos:NONAME_870if 05AD:   s$93 == 'SF' // s$ == short  // San Fierroelse_jump @NONAME_909 05A9: s$95 = 'SF' // s$  // San Fierro:NONAME_909if 05AD:   s$93 == 'VE' // s$ == short  // Las Venturaselse_jump @NONAME_948 05A9: s$95 = 'VE' // s$  // Las Venturas:NONAME_948gosub @NONAME_1017 return :NONAME_95703E0: draw_text_behind_textures 1 033F: set_text_draw_letter_size 0.5 1.4 0342: set_text_draw_centered 1 081C: draw_text_outline 2 RGBA 0 0 0 255 0340: set_text_draw_RGBA [email protected] [email protected] [email protected] 255 033E: set_draw_text_position 310.0 426.0 GXT s$93 return :NONAME_10070842: [email protected] = player $PLAYER_CHAR town_number return :NONAME_101703E0: draw_text_behind_textures 1 033F: set_text_draw_letter_size 0.0 0.0 0342: set_text_draw_centered 1 081C: draw_text_outline 2 RGBA 0 0 0 255 033E: set_draw_text_position 540.0 800.0 GXT s$95 return :NONAME_1067gosub @NONAME_1090 gosub @NONAME_1100 gosub @NONAME_1017 return :NONAME_1090094B: v$99 = get_active_interior_name_from_actor $PLAYER_ACTOR // 16-byte string return :NONAME_110003E0: draw_text_behind_textures 1 033F: set_text_draw_letter_size 0.3 1.2 0342: set_text_draw_centered 1 081C: draw_text_outline 2 RGBA 0 0 0 255 033E: set_draw_text_position 180.0 326.0 GXT v$99 return :NONAME_2wait 0 [email protected] = 255 [email protected] = 0 [email protected] = 0 [email protected] = 0 :NONAME_35wait 0 gosub @[email protected] += 1   [email protected] > 255 jf @NONAME_35 [email protected] = 255 [email protected] = 255 :NONAME_84wait 0 gosub @[email protected] -= 1   0 > [email protected] jf @NONAME_84 [email protected] = 0 [email protected] = 0 :NONAME_130wait 0 gosub @NONAME_957 [email protected] += 1   [email protected] > 255 jf @NONAME_130 [email protected] = 255 [email protected] = 255 :NONAME_179wait 0 gosub @[email protected] -= 1   0 > [email protected] jf @NONAME_179 [email protected] = 0 [email protected] = 0 :NONAME_225wait 0 gosub @[email protected] += 1   [email protected] > 255 jf @NONAME_225 [email protected] = 255 [email protected] = 255 :NONAME_274wait 0 gosub @[email protected] -= 1   0 > [email protected] jf @NONAME_274 [email protected] = 0 jump @NONAME_2 

The zonetext mod is untill this code .

 

 

This code makes the textdraw to change colors.

:NONAME_2wait 0 [email protected] = 255 [email protected] = 0 [email protected] = 0 [email protected] = 0 :NONAME_35wait 0 gosub @[email protected] += 1   [email protected] > 255 jf @NONAME_35 [email protected] = 255 [email protected] = 255 :NONAME_84wait 0 gosub @[email protected] -= 1   0 > [email protected] jf @NONAME_84 [email protected] = 0 [email protected] = 0 :NONAME_130wait 0 gosub @NONAME_957 [email protected] += 1   [email protected] > 255 jf @NONAME_130 [email protected] = 255 [email protected] = 255 :NONAME_179wait 0 gosub @[email protected] -= 1   0 > [email protected] jf @NONAME_179 [email protected] = 0 [email protected] = 0 :NONAME_225wait 0 gosub @[email protected] += 1   [email protected] > 255 jf @NONAME_225 [email protected] = 255 [email protected] = 255 :NONAME_274wait 0 gosub @[email protected] -= 1   0 > [email protected] jf @NONAME_274 [email protected] = 0 jump @NONAME_2 

What i did wrong ? as an explanation i made a video who shows you guys why the textdraw is only blue ?

 

 

Link to comment
Share on other sites

i didn't checked the scripts very much but i saw that [email protected] is used

The local variables [email protected] and [email protected] are reserved for using in time checks

Their values is permanently counting ascending in milliseconds.

[email protected] and [email protected] can't be used for anything else or game can crash

They are allways integer values

Link to comment
Share on other sites

The initial code was this :

:NONAME_2wait 0 [email protected] = 255 [email protected] = 0 [email protected] = 0 [email protected] = 0 :NONAME_35wait 0 gosub @NONAME_320 [email protected] += 1   [email protected] > 255 jf @NONAME_35 [email protected] = 255 [email protected] = 255 :NONAME_84wait 0 gosub @NONAME_320 [email protected] -= 1   0 > [email protected] jf @NONAME_84 [email protected] = 0 [email protected] = 0 :NONAME_130wait 0 gosub @NONAME_320 [email protected] += 1   [email protected] > 255 jf @NONAME_130 [email protected] = 255 [email protected] = 255 :NONAME_179wait 0 gosub @NONAME_320 [email protected] -= 1   0 > [email protected] jf @NONAME_179 [email protected] = 0 [email protected] = 0 :NONAME_225wait 0 gosub @NONAME_320 [email protected] += 1   [email protected] > 255 jf @NONAME_225 [email protected] = 255 [email protected] = 255 :NONAME_274wait 0 gosub @NONAME_320 [email protected] -= 1   0 > [email protected] jf @NONAME_274 [email protected] = 0 jump @NONAME_2 

And it has 2 of [email protected] [email protected],i think one is used in time checks but i don't know wich one.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.