Posts: 3,324
Threads: 96
Joined: Sep 2013
20.07.2015, 08:10
(
Последний раз редактировалось Crayder; 28.07.2015 в 20:13.
)
Quote:
Originally Posted by RaeF
at the moment, sa-mp have Gvar, what make yours and sa-mp different?
|
Numbers. The more SVars there are, the slower they get. The more SVars there are, the closer you get to the maximum, 2000.
Dates! Who was first? GVars! That doesn't make it better. Although, you can't compare them that way now since GVars were first and better still.
Speed, period.
Gvars are 'ID based'.
That doesn't mean you can't switch over to SVars, in fact you'll probably never notice the difference until you try to create a 2001th SVar.
Posts: 929
Threads: 135
Joined: Sep 2009
Reputation:
0
Any posibility to use SetPVarInt( playerid, "TestValue", Value, ID ); (Something to be able to use the ID in the PVar) ?
Posts: 276
Threads: 48
Joined: Jan 2015
Reputation:
0
Hello, excuse me, how to compile this plugin for linux?
Posts: 929
Threads: 135
Joined: Sep 2009
Reputation:
0
What's the limit for GVARs ?
Posts: 6
Threads: 1
Joined: Nov 2012
Reputation:
0
Suggestion:
#
1How about deleteing ALL Values of a global variable?
Like dropping the hast map/array list/what ever.
So if a filterscripts stops running it would be possible to just drop the variables from the application.
Reason why:
I came across to create a "bad word" list with a external file which is going to be read on script start and push the whole file content into the global context of the server so I would be able to iterate trough the variable which holds the bad words.
And if i'm going to update this variable while runtime it would be required to drop the whole variable at first.
#2
Just pushing values into a global var
instead of knowing the highest index it would be nice to just push something.
So it's not required to know the latest index.
#2.1
Adding the whole interface of the used variable type...^^
Knolle
Posts: 7
Threads: 3
Joined: Aug 2009
Reputation:
0
It seems any calls to GVar is crashing my server with a unknown error, I'm not sure what the problem could be. Has anyone experienced similar issues? My code is old and I'm not sure which version of the GVar library it was using but I downloaded the latest one from here.
I run Ubuntu 16.04 64 bit, not sure if it could be a file permissions error (if GVar uses files)??