Lapayo / SAMPHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamer plugin

FPNDev opened this issue · comments

Why can't i register streamer natives?

RegisterAMXNative('CreateDynamicPickup', 'int', 'int', 'int', 'float', 'float', 'float', 'int', 'int', 'int', 'float', 'int', 'int');
RegisterAMXNative('DestroyDynamicPickup', null, 'int');
RegisterAMXNative('IsValidDynamicPickup', 'bool', 'int');

Running like:
CreateDynamicPickup(1318, 1, 0, 0, 0, 0, 0, -1, 200, -1, 0);

Trying to do like that, but it's not working

Streamer plugin is installed and ran sucessfully.

@FPNDev SAMPHP does not support Streamer plugin.

Check #12

@AmirSavand , checked this, but i thought registering plugin natives is supported. Don't you know any other plugins, that could help me with dynamic objects, pickups and etc? Would be grateful

@FPNDev I tried using this framework but it's not possible to make a good gamemode out of it, this project is dead and it's pretty outdated, the source code also has issues that needs to be fixed manually, like old functions and missing parameters, etc...

Also you will face random issues, like players getting disconnected, or random warnings about simple functions.

So your best option is not using Streamer at all or go back to Pawn 😉

And I don't know any other way or plugins for this framework.

@FPNDev you can however, use streamer in a filterscript or gamemode (not PHP) just like you use it without this framework, but you should also handle them via pawn (not PHP).

But this method requires some skills, not anyone can pull it off. But it's the only option to make it work with SAMPHP.

@AmirSavand, don't you know, is it possible to call my PHP function using pawn CallRemoteFunction? I've tried, but it's not working

@FPNDev As far as I know, not possible to communicate between SAMPHP and normal SAMP gamemodes/filterscripts.

Damn, have to shitcode than. But, anyway, thx.

But you can however, communicate via player variables or file system... But why go through so much trouble?

You should handle the streamer stuff in Pawn only....

Yea good luck, you'll realize that Pawn is better later.