Mismatch Argument 1 (3 Errors)
#1

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
Reply
#2

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)