[solved] get that plugin id what called native
Hello Alliedmodders!
I was wondering... PHP Code:
PHP Code:
It is pretty annoying to manually call CreateOneForward each time i wish to use costom functions. Basically i want to create function like set_task is. Also if it is impossible to do with pawn then i can also create module but i also don't know how to catch plugin id in module. there is one way i know but then i have to use one param to pass plugin id. function will be something like this: PHP Code:
Thanks! Edit: Here's one terrible stock i made: PHP Code:
Also its a kind of stock i want to call only one time for each function. If however i wish to make set_task like function i then need to store the function and plugin index somewhere i can get it fast without calling the stock again and it will become bit complicated then. |
Re: get that plugin id what called native
Describe this "set_task-like" function.
|
Re: get that plugin id what called native
Simple solution: Don't use style 1 natives.
|
Re: get that plugin id what called native
Deja vu! . . . I'm sure we've had this discussion before. . .
|
Re: get that plugin id what called native
the thing is that i have never worked with natives style 0, i didin't know that it passes plugins id.
Thanks for the hint, problem solved! |
Re: [solved] get that plugin id what called native
For reference, here is the thread that discussed this previously.
|
| All times are GMT -4. The time now is 01:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.