-
Notifications
You must be signed in to change notification settings - Fork 70
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
Comments
Same Here! |
I have same problem. Did anyone found fix for this ? |
Same problem... |
here too... same problem. YSI v5.05.0505 |
did anyone manage to solve it? |
Is there any solution? |
Any solution? We got same problem |
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 |
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?
The text was updated successfully, but these errors were encountered: