01.06.2014, 13:58
to botando esse sistema olha
e ta dando esse erro
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/radio", cmdtext, true) == 0)
{
PlayAudioStreamForPlayer(playerid, "https://www.youtube.com/watch?v=7aw7LJpHqDw");
return 1;
}
if (strcmp("/radiopos", cmdtext, true) == 0)
{
new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls", X, Y, Z, Distance, 1);
return 1;
}
return 0;
}
PHP код:
C:\Users\DANIEL\Desktop\RPG\filterscripts\Tempo-RoYal.pwn(21) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\DANIEL\Desktop\RPG\filterscripts\Tempo-RoYal.pwn(28) : warning 217: loose indentation
C:\Users\DANIEL\Desktop\RPG\filterscripts\Tempo-RoYal.pwn(28) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\DANIEL\Desktop\RPG\filterscripts\Tempo-RoYal.pwn(26) : warning 204: symbol is assigned a value that is never used: "Distance"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.