Posts: 1,151
Threads: 46
Joined: Jan 2013
Reputation:
0
You wont have a world record -.-! if i want i can make a variable for whatever.
Posts: 920
Threads: 113
Joined: Nov 2009
Reputation:
0
I guess roleplay scripts require alot of variables, nothing unusual
Posts: 100
Threads: 3
Joined: Mar 2012
Reputation:
0
Yes most RP scripts have LOTS of variables and arrays of variables and it's normal to use a lot of memory. However you should still be wise as to what type of variable you use and which ones you actually need. There's no need to store a variable that simply adds or does a small equation to 2 existing variables when you could just make a function to get the same result, especially if it's not used much. Using boolean-type variables instead of normal int ones for simple yes-or-no information would help, too.
Posts: 265
Threads: 34
Joined: Mar 2012
Reputation:
0
I've a question regarding those variables. (too lazy to make another topic)
Does it cause the server lag if we have lots of variables?
Posts: 1,151
Threads: 46
Joined: Jan 2013
Reputation:
0
No they dont, if you dont use them just create them they wont lag the server.