SA-MP Forums Archive
i have updated the audio plugin .... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: i have updated the audio plugin .... (/showthread.php?tid=419306)



i have updated the audio plugin .... - Joe_Goro - 28.02.2013

i have updated the audio plugin due i will move my serverfrom lunix to windows and when iam compiling i got those

those :

Код:
MaServer\gamemodes\UGRP.pwn(3436) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack") MaServer\gamemodes\UGRP.pwn(3489) : error 017: undefined symbol "Audio_Seek" MaServer\gamemodes\UGRP.pwn(3521) : error 017: undefined symbol "Audio_Seek" MaServer\gamemodes\UGRP.pwn(3499) : warning 203: symbol is never used: "seek" MaServer\gamemodes\UGRP.pwn(3551) : error 017: undefined symbol "Audio_Seek" MaServer\gamemodes\UGRP.pwn(3530) : warning 203: symbol is never used: "seek" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.

how to fix that ?


Re: i have updated the audio plugin .... - MiGu3X - 28.02.2013

You have to forward the function "Audio_Seek"
Like

forward Audio_Seek


Re: i have updated the audio plugin .... - Joe_Goro - 01.03.2013

uh ? iam not understand


Re: i have updated the audio plugin .... - Blaeks - 01.03.2013

open your gamemode.pwn search
Audio_Seek
replace with
Audio_SetPosition
because the creator of audio plugin had change function


Re: i have updated the audio plugin .... - Joe_Goro - 01.03.2013

kk nice fixed but i got 1 more eroors

Код:
C:\Users\Administrator\Desktop\MaServer\gamemodes\UGRP.pwn(3436) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warnings.
??!??


Re: i have updated the audio plugin .... - Joe_Goro - 03.03.2013

any help ?


Re: i have updated the audio plugin .... - Jstylezzz - 03.03.2013

you have to forward it..
like this
pawn Код:
forward MyFunc();
public MyFunc()
{

}



Re: i have updated the audio plugin .... - Joe_Goro - 03.03.2013

huh ? sorry bro iam not understand


Re: i have updated the audio plugin .... - Joe_Goro - 03.03.2013

public Audio_OnSetPack(audiopack[])
{
foreach(Player, i)
{
Audio_TransferPack(i);
}
return 1;
}

this is in the script change it to


Re: i have updated the audio plugin .... - Jstylezzz - 03.03.2013

add this above the public:
pawn Код:
forward Audio_OnSetPack(audiopack[]);
It will look like this:
pawn Код:
forward Audio_OnSetPack(audiopack[]);
public Audio_OnSetPack(audiopack[])
{
foreach(Player, i)
{
Audio_TransferPack(i);
}
return 1;
}