SA-MP Forums Archive
Mismatch Argument 1 (3 Errors) - 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: Mismatch Argument 1 (3 Errors) (/showthread.php?tid=398782)



Mismatch Argument 1 (3 Errors) - MikkaVanBuuren - 11.12.2012

C:\Users\NoLagg\Desktop\vasco\gamemodes\fatron.pwn (4442) : error 035: argument type mismatch (argument 1)
C:\Users\NoLagg\Desktop\vasco\gamemodes\fatron.pwn (4474) : error 035: argument type mismatch (argument 1)
C:\Users\NoLagg\Desktop\vasco\gamemodes\fatron.pwn (4452) : warning 203: symbol is never used: "seek"
C:\Users\NoLagg\Desktop\vasco\gamemodes\fatron.pwn (4504) : error 035: argument type mismatch (argument 1)
C:\Users\NoLagg\Desktop\vasco\gamemodes\fatron.pwn (4483) : warning 203: symbol is never used: "seek"
C:\Users\NoLagg\Desktop\vasco\gamemodes\fatron.pwn (91454) : warning 235: public function lacks forward declaration (symbol "OnPlayerShootPlayer")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.


The Lines that are in the error code is here
Код:
forward SendAudioToPlayer(playerid, audioid, volume, seek);
public SendAudioToPlayer(playerid, audioid, volume, seek)
{
	if(IsPlayerConnected(playerid))
	{
		if(Audio_IsClientConnected(playerid))
		{
			new localhandle = Audio_Play(playerid,audioid,false,false,false);
			Audio_SetVolume(playerid, localhandle, volume);
   			Audio_OnSetPack(playerid, localhandle, seek);
		}
		else
		{
			return 0;
		}
	}
	return 1;
}
Its the audio thingy , how do I fix it


Re: Mismatch Argument 1 (3 Errors) - MikkaVanBuuren - 11.12.2012

Код:
   	Line 4442 - >		Audio_OnSetPack(playerid, localhandle, seek);
Код:
       Line 4474 - >                               Audio_OnSetPack(i, localhandle, seek);
Код:
       Line 4504 - >                                      Audio_OnSetPack(i, localhandle, seek);
There you go


Re: Mismatch Argument 1 (3 Errors) - MikkaVanBuuren - 11.12.2012

Quote:
Originally Posted by ******
Посмотреть сообщение
That function expects a string, not a playerid.
hmm??
What does that mean :O
Im not a scripter just trying to get it fixed