Audio plugin for all
#4

Quote:

SendClientMessage(playerid, COLOR_YELLOW, string);
Audio_Set3DPosition(playerid, handleid, x, y, z, distance);

Try changing it to

pawn Код:
for(new i = 0; i < 500; i++){
    SendClientMessage(i, COLOR_YELLOW, string);
    Audio_Set3DPosition(i, handleid, x, y, z, distance);
}
That's what you wanted, right? Set 3D position for everyone.
Also, if you get an error ("unknown playerid" or something else), try removing "#pragma unused playerid".
You're now actually removing the 'playerid' from the function (a kind of).
Quote:

if (sscanf(params, "dffff", handleid, x, y, z, distance))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /set3dposition <handleid> <x> <y> <z> <distance>");
return 1;
}

And there you're using playerid. So you're calling something unknown, probably. Just try to remove that #pragma line
Reply


Messages In This Thread
Audio plugin for all - by birekzkiw - 17.02.2011, 22:34
Re: Audio plugin for all - by Kwarde - 17.02.2011, 22:37
Re: Audio plugin for all - by birekzkiw - 19.02.2011, 00:49
Re: Audio plugin for all - by Kwarde - 19.02.2011, 21:16
Re: Audio plugin for all - by birekzkiw - 19.02.2011, 22:55
Re: Audio plugin for all - by Kwarde - 19.02.2011, 23:35

Forum Jump:


Users browsing this thread: 2 Guest(s)