IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Helo with strings

 
Fable11  
Posted: Friday, Aug 31 2012, 20:26
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Jun 16, 2009

mw.gif

XXXXX



Hi , i want to make a dynamic text string that shows the zone name where the player is located , but i just fail again and again

These are the opcodes i use , this isn't the script ...
CODE


***** 00A0: store_actor $PLAYER_ACTOR position_to $x $y $z
***** 0843: get_zone_at $x $y $z nameA_to $zone // 8-byte string
***** 06D2: 28@v = $zone // @v = string
***** 0384: show_text_1string GXT 'BEEFY' string 28@v time 15000 1



Any help ?
PM
  Top
 

 
HeresOtis  
Posted: Friday, Aug 31 2012, 21:33
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Apr 29, 2011

XXXXX



CODE
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@
0843: get_zone_at 1@ 2@ 3@ nameA_to 5@s // 8-byte string
0ADF: add_dynamic_GXT_entry "_TEST" text "~a~"
0384: show_text_1string GXT "_TEST" string 5@s time 5000 1
0AE0: remove_dynamic_GXT_entry "_TEST"
PM
  Top
 

 
Fable11  
Posted: Saturday, Sep 1 2012, 10:58
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Jun 16, 2009

mw.gif

XXXXX



QUOTE (HeresOtis @ Friday, Aug 31 2012, 21:33)
CODE
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@
0843: get_zone_at 1@ 2@ 3@ nameA_to 5@s // 8-byte string
0ADF: add_dynamic_GXT_entry "_TEST" text "~a~"
0384: show_text_1string GXT "_TEST" string 5@s time 5000 1
0AE0: remove_dynamic_GXT_entry "_TEST"

It doesn't work , it shows the "~a~" and not the 5@s
PM
  Top
 

 
SilentPL  
Posted: Saturday, Sep 1 2012, 11:57
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




Isn't it easier to use

CODE
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@
0843: get_zone_at 1@ 2@ 3@ nameA_to 5@s // 8-byte string
00BC: show_text_highpriority GXT 5@s time 5000 flag 1


?
Users WebsitePMMSNXbox Live
  Top
 

 
Fable11  
Posted: Saturday, Sep 1 2012, 17:26
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Jun 16, 2009

mw.gif

XXXXX



QUOTE (SilentPL @ Saturday, Sep 1 2012, 11:57)
Isn't it easier to use

CODE
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@
0843: get_zone_at 1@ 2@ 3@ nameA_to 5@s // 8-byte string
00BC: show_text_highpriority GXT 5@s time 5000 flag 1


?

Thanks biggrin.gif
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG