LAST QUESTION! HELP PLEASSE
#1

C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3523) : error 017: undefined symbol "Audio_SetPosition"
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3555) : error 017: undefined symbol "Audio_SetPosition"
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3533) : warning 203: symbol is never used: "seek"
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3585) : error 017: undefined symbol "Audio_SetPosition"
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3564) : warning 203: symbol is never used: "seek"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.


What's the problem? :S im going crazy
Reply
#2

Pleasse help?


Код:
SendAudioToRange(audioid, volume, seek, Float:x, Float:y, Float:z, Float:range)
{
	if(audiohandleglobal >= 99)
	{
	    audiohandleglobal = 0;
	}
	else
	{
	    audiohandleglobal++;
	}

	foreach(Player, i)
	{
	    if(IsPlayerConnected(i))
	    {
			if(Audio_IsClientConnected(i))
			{
                if(IsPlayerInRangeOfPoint(i,range,x,y,z))
                {
                    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;
                }
			}
	    }
	}
	return audiohandleglobal;
}

stock SendAudioURLToRange(url[], volume, seek, Float:x, Float:y, Float:z, Float:range)
{
    if(audiohandleglobal >= 99)
	{
	    audiohandleglobal = 0;
	}
	else
	{
	    audiohandleglobal++;
	}
	foreach(Player, i)
	{
	    if(IsPlayerConnected(i))
	    {
			if(Audio_IsClientConnected(i))
			{
                if(IsPlayerInRangeOfPoint(i,range,x,y,z))
                {
                    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;
                }
			}
	    }
	}
	return audiohandleglobal;
}
Reply
#3

Now im not the big scripter, but i guess you just have to add a
"new Audio_SetPosition"
and to the warnings you need to use the what ever it is called "seek"
Reply
#4

Once more I must urge you to stop copying scripts if you don't know what you're doing. DEPENDENCIES!
Reply
#5

So, What do i need to do? just typ new Audio_Setposition? and ?
Reply
#6

C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(34) : error 001: expected token: ";", but found "static"
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3524) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3524) : warning 215: expression has no effect
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3524) : warning 215: expression has no effect
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3524) : warning 215: expression has no effect
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3524) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3524) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Dennis\Bureaublad\64.31.59.252_7778\gamem odes\CSRPw.pwn(3524) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

If i typ new Audio_Setposition
Reply
#7



I don't even know where to start explaining, so I'll leave that job to someone else. Maybe you can start by learning the differences between variables, functions and macros. Oh, and there is a search button as well. You might want to use it for once.
Reply
#8

I fixed it!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)