View Single Post
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-24-2010 , 02:36   Re: [HOWTO] Using XVars
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
I think that speed should be considered in some situations.
True, but I said what I said because I could not give information about speed difference.

Quote:
Originally Posted by ConnorMcLeod View Post
So, you said that set_xvar_XXX works only in the "main" plugin ?
Or is this the way to set an xvar from an outside plugin ?
The [get|set]_xvar_[num|float] work in the main plugin and the outside plugins.
However it is useless to use them in the main plugin since you have direct access to them.

Quote:
Originally Posted by ConnorMcLeod View Post
Also, i think that native xvar_exists is useless when get_xvar_id does actually the same + returns the index.
You're right, but the native exists (remember this is in AMXX and cannot be changed) so it's more logical to use it rather than checking it's ID for -1.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline