Lapayo / SAMPHP

20 stars 9 forks source link

Using other plugin's callbacks in PHP #1

Closed maddin77 closed 10 years ago

maddin77 commented 11 years ago

Hi, i want to use the functions of the FCNPC Plugin in PHP, but i cant find a way to use callbacks. I tried to use it like this:

RegisterAMXNative('FCNPC_OnCreate', "null", "int");
function FCNPC_OnCreate($id) {
    //do something
}

but that will just throw me an error because it will try to redeclare a function.

So... is there actually a way to do this? Or if not, are there any plans to implement this in the future?

Lapayo commented 11 years ago

At the moment this is not possible. I dont have much time in the moment, so I dont know if or when it will be implemented.