[callfunc_begin_i] Public function -1 is invalid
Hi,
I searched in many threads and still couldn't fix the error. Error : Quote:
PHP Code:
Code:
Sub-Plugin that uses the native. PHP Code:
The menu works just fine, the item appears, when you click it you lose your money ($500) but the 'It Prints !' never prints, and I get that error. Means that the problem is in the callfunc part (as the error says) Thanks. :3 |
Re: [callfunc_begin_i] Public function -1 is invalid
Why not use single plugin forwards instead?
Anyway it seems like your issue is here: PHP Code:
|
Re: [callfunc_begin_i] Public function -1 is invalid
Quote:
And, I tried using MeRcyLeZZ's method of ZP but it didn't work, though I have no idea how to work with CreateOneForward, do you mind showing me an example? Thanks again. |
Re: [callfunc_begin_i] Public function -1 is invalid
It's exactly the same as CreateMultiForward (I guess you've used it at some point? If not, there's many examples around), the only difference being is that you have to provide the plugin you want to call the function in (hence "single plugin forward").
They both get executed with ExecuteForward. Here's a tutorial: https://forums.alliedmods.net/showthread.php?t=41241 |
Re: [callfunc_begin_i] Public function -1 is invalid
Hawk's tutorial doesn't really have any example for CreateOneForward, can you give me an example because I'm not very familiar with this..
|
Re: [callfunc_begin_i] Public function -1 is invalid
PHP Code:
|
Re: [callfunc_begin_i] Public function -1 is invalid
Quote:
|
| All times are GMT -4. The time now is 22:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.