Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatibility with foreach/YSI #46

Open
marcelog09 opened this issue Dec 1, 2020 · 8 comments
Open

incompatibility with foreach/YSI #46

marcelog09 opened this issue Dec 1, 2020 · 8 comments

Comments

@marcelog09
Copy link

marcelog09 commented Dec 1, 2020

I noticed that it doesn't work in my gamemode - only in filterscripts - and after some tests, I found out that there is some kind of incompatibility with foreach and / or YSI library.

In gamemode, when I put #include before #include , I get the following errors:

include\sampvoice.inc(72) : error 025: function heading differs from prototype
include\sampvoice.inc(73) : error 025: function heading differs from prototype
gamemodes \ voicetest.pwn (14): error 025: function heading differs from prototype
gamemodes \ voicetest.pwn (24): error 025: function heading differs from prototype

Error lines:
forward SV_VOID: OnPlayerActivationKeyPress (SV_UINT: playerid, SV_UINT: keyid);
forward SV_VOID: OnPlayerActivationKeyRelease (SV_UINT: playerid, SV_UINT: keyid);

public SV_VOID: OnPlayerActivationKeyPress (
public SV_VOID: OnPlayerActivationKeyRelease (

And when placing #include after #include , no error is displayed, but the voice does not work - voices do not come out.

In filterscript - where there is no use of the foreach and / or YSI library - everything works correctly.

sampvoice version: 3.0-alpha
YSI version: YSI-5.4.102

Is there any solution?

@nrgrpg
Copy link

nrgrpg commented Jan 15, 2021

Same Here!
Anyone can help us?

@kaizerpwn
Copy link

I have same problem.

Did anyone found fix for this ?

@Jobim17
Copy link

Jobim17 commented Oct 29, 2021

Same problem...

@GabrielLucioC
Copy link

here too... same problem. YSI v5.05.0505

@raedman90
Copy link

did anyone manage to solve it?

@SugengGod
Copy link

Is there any solution?

@Kutuy
Copy link

Kutuy commented Jun 11, 2022

Any solution? We got same problem

@mhyunata
Copy link

yeah we are same here, also i've test it with planting the script on my GM. but there's a many bugs, just like when u hit the talk button the sampvoice script will call another script from your GM, idk why but yeah it seems like this is cannot use with YSI/foreach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants