Quote:
Originally Posted by ConnorMcLeod
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
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
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.
__________________