17.06.2012, 06:21
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)
Those are the warnings I get regarding 'Distance'.
Also, when I remove
from the top of the script, I got an error:
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;
}
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.
pawn Код:
#define PlayAudioStreamForPlayer
pawn Код:
undefined symbol "PlayAudioStreamForPlayer"