05.12.2018, 18:06
Hello, I got lots of warnings when I use this function:
How can I solve these warnings?
Thank you in advance!
PHP код:
stock PlayAudioStreamForPlayersInCar(vehicleid, url[])
{
foreach(new i : Player)
{
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerVehicleID(i) == vehicleid)
{
PlayAudioStreamForPlayer(i,url);
}
}
}
return 1;
}
PlayAudioStreamForPlayersInCar(vehicleid, "http://RadioURL.domain");// warning 239: literal array/string passed to a non-const parameter
Thank you in advance!