Posts: 1,050
Threads: 153
Joined: Mar 2016
Reputation:
0
Which one is the faster and takes low memory?
SetPVarInt/SetPVarString or Enums/New variables
Posts: 272
Threads: 2
Joined: Jul 2010
Reputation:
0
From a response I saw recently, normal variables take less memory and are faster. Difference is pvars just automatically reset on player disconnect meaning you don't manually have to do it.
Don't take my word for it though, just started scripting so unsure.
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
Pvars can be accessed in any script. (you can use them in filterscripts and gamemodes where their values are globally same)
Variables are limited to the script only.
Pvars take more memory but speed is allright. You should concentrate on what you are using them for.
Posts: 1,050
Threads: 153
Joined: Mar 2016
Reputation:
0
Hm.. aight thanks for the information.