Problem with 'PlayAudioStreamForPlayer'
#1

Yesterday, I've read many tutorials regarding 'PlayAudioStreamForPlayer' as I tried to make my own command, at compiling I got no errors, only warnings. as I went in-game and typed the command so the music will start, but well. Music didn't start, and nothing happend. Here's the code. (I'm using ZCMD)

pawn Код:
CMD:station1(playerid, params[])
{

     new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
       GetPlayerPos(playerid, X, Y, Z);
       PlayAudioStreamForPlayer(playerid, "http://50.117.115.210/listen.pls");
       SendClientMessageEx(playerid, COLOR_WHITE, "Music started!");
       return 1;
}
Those are the warnings I get regarding 'Distance'.
pawn Код:
warning 217: loose indentation
warning 215: expression has no effect
warning 204: symbol is assigned a value that is never used: "Distance"
warning 217: loose indentation
warning 215: expression has no effect
warning 204: symbol is assigned a value that is never used: "Distance"
warning 217: loose indentation
warning 215: expression has no effect
warning 204: symbol is assigned a value that is never used: "Distance"
warning 217: loose indentation
warning 215: expression has no effect
warning 204: symbol is assigned a value that is never used: "Distance"
warning 217: loose indentation
warning 215: expression has no effect
warning 204: symbol is assigned a value that is never used: "Distance"
warning 217: loose indentation
warning 215: expression has no effect
warning 204: symbol is assigned a value that is never used: "Distance"
warning 217: loose indentation
warning 215: expression has no effect
warning 204: symbol is assigned a value that is never used: "Distance"
warning 217: loose indentation
 warning 215: expression has no effect
 warning 204: symbol is assigned a value that is never used: "Distance"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


24 Warnings.
Also, when I remove
pawn Код:
#define PlayAudioStreamForPlayer
from the top of the script, I got an error:
pawn Код:
undefined symbol "PlayAudioStreamForPlayer"
Reply


Messages In This Thread
Problem with 'PlayAudioStreamForPlayer' - by Mr.1337 - 17.06.2012, 06:21
Re: Problem with 'PlayAudioStreamForPlayer' - by tiernantheman - 17.06.2012, 07:13
Re: Problem with 'PlayAudioStreamForPlayer' - by Mr.1337 - 17.06.2012, 07:18
Re: Problem with 'PlayAudioStreamForPlayer' - by tiernantheman - 17.06.2012, 07:22
Re: Problem with 'PlayAudioStreamForPlayer' - by Mr.1337 - 17.06.2012, 07:25
Re: Problem with 'PlayAudioStreamForPlayer' - by tiernantheman - 17.06.2012, 07:26
Re: Problem with 'PlayAudioStreamForPlayer' - by Mr.1337 - 17.06.2012, 07:27

Forum Jump:


Users browsing this thread: 1 Guest(s)