12.04.2013, 14:01
Hello everyone,
I found a basic function of 'PlayAudioStreamForAll' and I want to combine it with a dialog.
I tried to put the script in 'DialogResponse' public but when i compile I got an error that i don't understand...
error 017: undefined symbol "i"
I found a basic function of 'PlayAudioStreamForAll' and I want to combine it with a dialog.
I tried to put the script in 'DialogResponse' public but when i compile I got an error that i don't understand...
PHP код:
stock PlayAudioStreamForAll(url[])
{
for(new i; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected( i ))
{
PlayAudioStreamForPlayer(i, url, x, y, z, distance);
}
}
return 1;
}
if(dialogid == DIALOG_MUSIC)
{
if(response)
{
PlayAudioStreamForPlayer(i, url, x, y, z, distance);