AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Como "NO" usar una native? | How to "Not" use a native (https://forums.alliedmods.net/showthread.php?t=329768)

AstRoid 01-06-2021 22:59

Como "NO" usar una native? | How to "Not" use a native
 
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.

fysiks 01-06-2021 23:30

Re: Como "NO" usar una native? | How to "Not" use a native
 
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.

HamletEagle 01-07-2021 03:17

Re: Como "NO" usar una native? | How to "Not" use a native
 
Do you have any good reason for avoiding natives?


All times are GMT -4. The time now is 14:09.

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