creating forwards in plugins
Let's say I have this function in a script:
Code:
Now that code is in plugin A. I want it so that someone can come along and make a plugin B and just hook when plugin A calls that function and be able to know what the parameters are. Code:
|
Re: creating forwards in plugins
Code:
|
Re: creating forwards in plugins
wow this is sweaty.. so we are able to know when is a function called in other plugin if they have a multiforward? and those this goes for functions only? or stocks too..
|
Re: creating forwards in plugins
wow, thats so simple. that's f***ing awesome. thanks bro
|
Re: creating forwards in plugins
Quote:
this: allows a plugin creator to allow other plugin creators to create functions that are called whenever their function is called. edit: i don't think you know exactly what a function is either. "set_user_name" is a native function, and when you put: "public blah()" in a plugin, blah is now a function you made. (of course it doesn't need to be public to be a function) |
Re: creating forwards in plugins
so a stock counts as a function?
|
Re: creating forwards in plugins
It has to be a public function.
|
Re: creating forwards in plugins
Quote:
and i guessed it had to be public to use this forwarding, what i was stating was that a function does not have to be public to be a function in general. |
Re: creating forwards in plugins
Quote:
it will just be only created when it is used. and you can create forwards in any type of function. |
Re: creating forwards in plugins
Quote:
|
| All times are GMT -4. The time now is 04:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.