Raised This Month: $51 Target: $400
 12% 

Natives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-09-2011 , 02:23   Natives
Reply With Quote #1

I'm making a few seperate plugins and I want a certain command and a certain global variable to be accessible from each of these plugins, and would be initialized in my main plugin. So they would be called natives right? I've searched through the forums and I can't find a tutorial on this - I'm assuming that there is one, but I'm struggling to find it.

Can anyone help me?

Thanks.
hornet is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-09-2011 , 04:32   Re: Natives
Reply With Quote #2

Searched for "natives" only in titles in "code snippets/tutorials": http://forums.alliedmods.net/showthread.php?t=41251
__________________
Hunter-Digital is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-09-2011 , 19:33   Re: Natives
Reply With Quote #3

For just variables you have the option of using xvars (or natives). For commands you should use natives.
__________________
fysiks is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-10-2011 , 21:39   Re: Natives
Reply With Quote #4

From the xvars tutorial:
Quote:
Originally Posted by ConnorMcLeod View Post
It appears that get_pcvar_num and get_xvar_num are executer with the same speed.
fake natives are slower.

...
So go xvars if you don't need arrays or strings :}
__________________
Hunter-Digital is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode