Is there a way too - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is there a way too (
/showthread.php?tid=123414)
Is there a way too -
Torran - 25.01.2010
Is there a way to check a objects position,
So i can stop a sound when a object has stopped moving?
Re: Is there a way too -
¤Adas¤ - 25.01.2010
Use:
pawn Код:
public OnObjectMoved(objectid)
{
if(objectid == ...)
{
for(new i; i<GetMaxPlayers(); i++) if(Music[i]) PlayerPlaySound(i, 1063); // Or something like that... I can' t see your code so try this.
}
return 1;
}
Re: Is there a way too -
¤Adas¤ - 25.01.2010
sorry for this..
Re: Is there a way too -
Torran - 25.01.2010
I will try it, Thanks
Re: Is there a way too -
Torran - 25.01.2010
Код:
C:\Users\Torran\Desktop\sa-mp\gamemodes\b-cnr.pwn(378) : error 017: undefined symbol "Music"
C:\Users\Torran\Desktop\sa-mp\gamemodes\b-cnr.pwn(378) : warning 215: expression has no effect
C:\Users\Torran\Desktop\sa-mp\gamemodes\b-cnr.pwn(378) : error 001: expected token: ";", but found "]"
C:\Users\Torran\Desktop\sa-mp\gamemodes\b-cnr.pwn(378) : error 029: invalid expression, assumed zero
C:\Users\Torran\Desktop\sa-mp\gamemodes\b-cnr.pwn(378) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
for(new i; i<GetMaxPlayers(); i++) if(Music[i]) PlayerPlaySound(i, 1166, 1588.813721, -1638.163086, 12.899040);