Is there a way too
#1

Is there a way to check a objects position,
So i can stop a sound when a object has stopped moving?
Reply
#2

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;
}
Reply
#3

sorry for this..
Reply
#4

I will try it, Thanks
Reply
#5

Код:
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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)