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

Como "NO" usar una native? | How to "Not" use a native


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AstRoid
Junior Member
Join Date: May 2020
Location: Cordoba, Argentina
Old 01-06-2021 , 22:59   Como "NO" usar una native? | How to "Not" use a native
Reply With Quote #1

Quizas me explique mal en el titulo, pero a lo que me refieros es que en mi caso, yo suelo usar mucho las natives, asi sean para armas o para llamar una funcion de otro plugin. En fin, hay alguna forma de llamar una funcion de otro plugin sin native?

Maybe I explained it wrong in the title, but what I mean is that in my case, I use a lot of natives, whether for weapons or to call a function of another plugin. Anyway, is there any way to call a function of another plugin without native?

Dejo como ejemplo | I leave as an example
PHP Code:
public hook_change(id
Desde ya muchas gracias por su repuesta.

Thank you very much for your response.

Last edited by AstRoid; 01-06-2021 at 23:00.
AstRoid is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-06-2021 , 23:30   Re: Como "NO" usar una native? | How to "Not" use a native
Reply With Quote #2

Use a native. It is the best option. Natives are designed for exactly what you are doing.

Technically, there is a way to call a public function in another plugin. Look at the callfunc_* functions. This method should be avoided if at all possible.
__________________

Last edited by fysiks; 01-06-2021 at 23:31.
fysiks is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-07-2021 , 03:17   Re: Como "NO" usar una native? | How to "Not" use a native
Reply With Quote #3

Do you have any good reason for avoiding natives?
__________________
HamletEagle 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 11:22.


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