else if(!strcmp(cmd, "/playmusic", true))
{
foreach(Player, i)
{
if(PlayerInfo[playerid][pAdmin] < 1) return MSG_NOADMIN1(playerid);
if(IsPlayerInRangeOfPoint(playerid, 10.0, 260.4326,-1809.4899,6.9791))
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Ievadi: /playmusic [Link]");
new Float:X, Float:Y, Float:Z, Float:Distance = 80.0;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(i, "params", X, Y, Z, Distance, 1);
}
}
return 1;
}
C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9804) : error 017: undefined symbol "params" C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9808) : error 017: undefined symbol "params" C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9808) : error 029: invalid expression, assumed zero C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9808) : error 017: undefined symbol "params" C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9808) : fatal error 107: too many error messages on one line
CMD:playmusic(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 260.4326,-1809.4899,6.9791))
{
if(isnull(params)) return SendClientMessage(playerid,0xf8f8f8fff, "Syntax: {FFFFFF}/playmusic <Link>");
foreach(Player, i)
{
PlayAudioStreamForPlayer(i, params);
}
}
return 1;
}
else if(!strcmp(cmd, "/playmusic", true))
{
foreach(Player, i)
{
if(PlayerInfo[playerid][pAdmin] < 1) return MSG_NOADMIN1(playerid);
if(IsPlayerInRangeOfPoint(playerid, 10.0, 260.4326,-1809.4899,6.9791))
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Ievadi: /playmusic [Link]");
new Float:X, Float:Y, Float:Z, Float:Distance = 80.0;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(i, params, X, Y, Z, Distance, 1);
}
}
return 1;
}
C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9807) : error 017: undefined symbol "params" C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9807) : error 029: invalid expression, assumed zero C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9807) : error 017: undefined symbol "params" C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9807) : fatal error 107: too many error messages on one line
CMD:playmusic(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) return MSG_NOADMIN1(playerid); if(IsPlayerInRangeOfPoint(playerid, 10.0, 260.4326,-1809.4899,6.9791)) { if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Ievadi: /playmusic [Link]"); foreach(Player, i) { new Float:X, Float:Y, Float:Z, Float:Distance = 80.0; GetPlayerPos(playerid, X, Y, Z); PlayAudioStreamForPlayer(i, params, X, Y, Z, Distance, 1); } } return 1; }
Код:
CMD:playmusic(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) return MSG_NOADMIN1(playerid); if(IsPlayerInRangeOfPoint(playerid, 10.0, 260.4326,-1809.4899,6.9791)) { if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Ievadi: /playmusic [Link]"); foreach(Player, i) { new Float:X, Float:Y, Float:Z, Float:Distance = 80.0; GetPlayerPos(playerid, X, Y, Z); PlayAudioStreamForPlayer(i, params, X, Y, Z, Distance, 1); } } return 1; } |
C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9805) : error 017: undefined symbol "params"
C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9805) : error 029: invalid expression, assumed zero C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9805) : error 017: undefined symbol "params" C:\Users\Lietotājs\Desktop\GAPS\GM\LS-RP\gamemodes\tactic.pwn(9805) : fatal error 107: too many error messages on one line |