25.01.2010, 18:00
Is there a way to check a objects position,
So i can stop a sound when a object has stopped moving?
So i can stop a sound when a object has stopped moving?
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;
}
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.
for(new i; i<GetMaxPlayers(); i++) if(Music[i]) PlayerPlaySound(i, 1166, 1588.813721, -1638.163086, 12.899040);