Help with callfunc
Here is my error log text:
Code:
L 01/03/2007 - 13:20:46: Start of error session.PHP Code:
Also, I had the call as: callfunc_begin(ItemCommand[id][UserCurrentItem[id]]), but when I found out it was having problems, I added "RolePlay.amxx" to the end, even though the function I'm calling is in the same plugin as the callfunc, so it shouldn't really make a difference (and didn't). I was just trying things out. Sorry for posting in the wrong forum. |
Re: Help with callfunc
put debug next to plugin and put there error here
|
Re: Help with callfunc
Code:
L 01/03/2007 - 17:01:12: Start of error session.I highlighted line 728 on my first post. |
Re: Help with callfunc
callfunc_begin may not have completed successfully. Are you using it correctly?
|
Re: Help with callfunc
As far as I know, yes...
I'll try manually putting in the information, instead of through the array, and I'll post any results. Not sure when I'll have time to do that though, kinda busy. |
Re: Help with callfunc
Code:
Also you don't need "RolePlay.amxx" on the end if your calling within your own plugin. Code:
There is a better method for performance which is... Code:
|
Re: Help with callfunc
CRAP! I had forgotten to make it public. Damn, thanks a lot. It's the simple errors that make everything explode.
Thanks for the integer tip, as well. I might as well just store the command in an integer array like you suggest, because it currently is a string array. If I could give you more than one karma point, I would. |
Re: Help with callfunc
Suppose I have a function that returns a value ( integer ). How do I get the return value of the function based on the parameters I sent through callfunc_push_array?
EDIT - The plugin is remote... The function is not declared in the same plugin. For your perusal, think about "get_score" function in amxmodx/data/csstats.amxx |
Re: Help with callfunc
Quote:
|
| All times are GMT -4. The time now is 22:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.