What do i have to do to call another plugin?
1 Attachment(s)
Hello everyone
Iīm trying to use callfunc, but i have no idea how to use it. I made this PHP Code:
PHP Code:
zp_extra_item_selected exists in listed plugins. I donīt know what is wrong (well, i think it could be because of callfunc_push_str) Thanks for watching :) |
Re: What do i have to do to call another plugin?
Is zp_extra_item_selected() a public function ?
|
Re: What do i have to do to call another plugin?
Yes
Example PHP Code:
|
Re: What do i have to do to call another plugin?
Never tried to use such native and your code looks good, except that your function has 2 params and you push only the player id.
|
Re: What do i have to do to call another plugin?
But i dont know what i should push :?
|
Re: What do i have to do to call another plugin?
It's the item index returned by zp_register_extra_item().
|
Re: What do i have to do to call another plugin?
g_itemid_infammo? or itemid in that case?
|
Re: What do i have to do to call another plugin?
If I understand you want to "force" to select the item, right ? In this case, you have to execute a function in ZombiePlague not in the plugin item because this one is just a callback when an user selects an item.
|
| All times are GMT -4. The time now is 04:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.