SA-MP Forums Archive
Got a few error's - 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: Got a few error's (/showthread.php?tid=592845)



Got a few error's - eclipses - 30.10.2015

Hey, I am getting a few errors that i don't fully understand, its proboly from the Audio.inc system, but i dont know, could anybody check it out and see if there is any solution on this problem Cheers everyone.

Код:
C:\Users\Admin\Desktop\AMRP\gamemodes\AMRP.pwn(4156) : error 017: undefined symbol "Audio_SetPosition"
C:\Users\Admin\Desktop\AMRP\gamemodes\AMRP.pwn(4188) : error 017: undefined symbol "Audio_SetPosition"
C:\Users\Admin\Desktop\AMRP\gamemodes\AMRP.pwn(4166) : warning 203: symbol is never used: "seek"
C:\Users\Admin\Desktop\AMRP\gamemodes\AMRP.pwn(4218) : error 017: undefined symbol "Audio_SetPosition"
C:\Users\Admin\Desktop\AMRP\gamemodes\AMRP.pwn(4197) : warning 203: symbol is never used: "seek"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
line 4156
Код:
			new localhandle = Audio_Play(playerid,audioid,false,false,false);
			Audio_SetVolume(playerid, localhandle, volume);
			Audio_SetPosition(playerid, localhandle, seek);
line 4188
Код:
					new localhandle = Audio_Play(i,audioid,false,false,false);
					Audio_Set3DPosition(i, localhandle, x, y, z, range);
					Audio_SetVolume(i, localhandle, volume);
					Audio_SetPosition(i, localhandle, seek);
					audiohandle[i][audiohandleglobal] = localhandle;
line 4218
Код:
					new localhandle = Audio_PlayStreamed(i,url,false,false,false);
					Audio_Set3DPosition(i, localhandle, x, y, z, range);
					Audio_SetVolume(i, localhandle, volume);
					Audio_SetPosition(i, localhandle, seek);
					audiohandle[i][audiohandleglobal] = localhandle;



Re: Got a few error's - jlalt - 30.10.2015

did you put audio include? if not download it here ;_;
http://forum.sa-mp.com/showthread.ph...io_SetPosition


Re: Got a few error's - eclipses - 30.10.2015

Quote:
Originally Posted by jlalt
Посмотреть сообщение
did you put audio include? if not download it here ;_;
http://forum.sa-mp.com/showthread.ph...io_SetPosition
I have the #include <Audio> added, could it be that it's an old version of audio.inc?


Re: Got a few error's - jlalt - 30.10.2015

Quote:
Originally Posted by eclipses
Посмотреть сообщение
I have the #include <Audio> added, could it be that it's an old version of audio.inc?
maybe, try to download the latest one


Re: Got a few error's - eclipses - 30.10.2015

Worked to add latest version, Thanks <3 SOLVED!