31.03.2018, 20:15
Hi.
When i was done scripting this, errors popped up and i dont know what to do.
I tried #pragma unused params but i guess it wont work
Somebody, help?
Errors im getting:
When i was done scripting this, errors popped up and i dont know what to do.
I tried #pragma unused params but i guess it wont work
Somebody, help?
PHP код:
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;
}
Код HTML:
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