Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Get value from a char variable


Hyroshima

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   124
  • Joined:  07/11/14
  • Last Seen:  

hello everyone, would anyone know how to tell me the simplest way to access a permanent char variable that i created in a player but by src?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1691
  • Reputation:   717
  • Joined:  12/21/14
  • Last Seen:  

int64 value = pc_readregistry(sd, reference_uid(add_str("VARIABLE"), 0));

0 = THE Index if you are using array , if not leave it 0

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   124
  • Joined:  07/11/14
  • Last Seen:  

6 hours ago, sader1992 said:

int64 value = pc_readregistry(sd, reference_uid(add_str("VARIABLE"), 0));

0 = THE Index if you are using array , if not leave it 0

 

Thank you very much, it worked just fine ❤️❤️❤️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...