natives
how to can I forward variable data to another plugin using native?
I want to forward PHP Code:
PHP Code:
|
Re: natives
Start by reading the tutorial about natives made by Hawk.
|
Re: natives
Quote:
PHP Code:
|
Re: natives
Did it occur to you that you should post what you tried so we can see what is wrong and fix it?
|
Re: natives
PHP Code:
PHP Code:
PHP Code:
|
Re: natives
Post the definitions for g_currentmod, g_currentmap, g_lastmods, g_lastmap. I suspect all of this are strings(arrays) and you can't pass them around like you are trying to.
You should use set_array to achieve that functionality. |
Re: natives
Also, I'm pretty sure "#pragma reqlib" is no longer required. You should instead do the same as the default AMXX .inc files:
Code:
This will prevent the file from getting included multiple times, even though it's not likely to happen. |
Re: natives
If you are sharing integers or float AKA double values variables. you can share them with xvar natives by declaring the variables with public.
Here is a tutorial on how to achieve that. |
All times are GMT -4. The time now is 11:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.