How to pass tagged variable to other plugins
I have the following codes in plugin A:
PHP Code:
PHP Code:
PHP Code:
|
Re: How to pass tagged variable to other plugins
Try this one:
PHP Code:
|
Re: How to pass tagged variable to other plugins
Code:
Code:
native GetPlayerType( id , &type ); |
Re: How to pass tagged variable to other plugins
Quote:
Does it mean than by stripping the tag, the memory address of the PlayerType[ id ] will be passed as parameter instead? |
Re: How to pass tagged variable to other plugins
Quote:
|
Re: How to pass tagged variable to other plugins
Tags doesn't actually do anything except makes the compiler capable of telling you that you might have used a variable in the wrong context. After compilation they're basically gone.
However, if you end up using a tag and enforce it's usage in other plugins I would recommend putting them in the API plugin as well. The enum is basically useless in your API plugin if you're not using them individually in any way. It should be in the include which is used for the secondary plugin, along with the native declaration. I strongly suggest using the first example of these. Code:
Code:
If you're using tagged byref. Look how CsTeams based natives are declared in the include for guidance: Code:
Example of tag mismatching still working fine
|
Re: How to pass tagged variable to other plugins
Quote:
|
Re: How to pass tagged variable to other plugins
Thank you guys. Clear my minds now.
|
All times are GMT -4. The time now is 01:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.