I'm pretty familiar with variables (I use them in almost every script I make), but quite honestly, my knowledge of variables is somewhat of a piecemeal of seeing them used in other scripts and simply copying what I see. I know where and when to use certain variables, but I don't know why I'm using them.
I understand the basic jist of how variables work, but what I'm not understanding is the difference between, say, "$var$" and $@var$. Is this basically a combining of variables, such that the variable applies to more than one thing? At this point, all I really understand about variables is that they allow you to store values very easily, and depending on which variable you use, the value will be linked to a different function like an account ID, player ID, etc. But I'm not understanding the underlying complexities of variables and how multiple variables can be combined to achieve different effects. Any help would be greatly appreciated.
Question
GreenMagic793
Hey guys,
I'm pretty familiar with variables (I use them in almost every script I make), but quite honestly, my knowledge of variables is somewhat of a piecemeal of seeing them used in other scripts and simply copying what I see. I know where and when to use certain variables, but I don't know why I'm using them.
I understand the basic jist of how variables work, but what I'm not understanding is the difference between, say, "$var$" and $@var$. Is this basically a combining of variables, such that the variable applies to more than one thing? At this point, all I really understand about variables is that they allow you to store values very easily, and depending on which variable you use, the value will be linked to a different function like an account ID, player ID, etc. But I'm not understanding the underlying complexities of variables and how multiple variables can be combined to achieve different effects. Any help would be greatly appreciated.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.