CyberMor / sampvoice

Software Development Kit for implementing Pawn voice systems for SA:MP servers.
MIT License
128 stars 65 forks source link

incompatibility with foreach/YSI #46

Open marcelog09 opened 3 years ago

marcelog09 commented 3 years ago

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 commented 3 years ago

Same Here! Anyone can help us?

kaizerpwn commented 2 years ago

I have same problem.

Did anyone found fix for this ?

Jobim17 commented 2 years ago

Same problem...

GabrielLucioC commented 2 years ago

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

raedman90 commented 2 years ago

did anyone manage to solve it?

SugengGod commented 2 years ago

Is there any solution?

Kutuy commented 2 years ago

Any solution? We got same problem

mhyunata commented 1 year ago

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