Posts: 224
Threads: 37
Joined: Feb 2011
Reputation:
0
My simple question is: What is the difference between methods and variables? Also, what is a value? Please elaborate each example/definition you may give me.
As a reward, you will be given a reputation point.
Posts: 1,861
Threads: 103
Joined: Sep 2011
Reputation:
0
Alright, let's start with the beginning.
If you want to store data for as long as the script is running, you can use variables. A variable is just simply something that holds a value. A value can be, for example, 5. So, if I would have variable 'Coins', and the value of 'Coins' is 5, the variable 'Coins' is worth 5.
And, I'm not sure what you mean with method, but what I know under method, is the way you do something.
Posts: 224
Threads: 37
Joined: Feb 2011
Reputation:
0
Thank you so much. You have just been rewarded for that answer.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Pawn is a language that doesn't use classes and therefor it has no methods. A method is basically a function within a class.