brackets
#1

having problems with brackets:

pawn Код:
public OnPlayerEnterDynamicArea(playerid, areaid)
{
    foreach(Player, i)
    {
        if(GetPVarType(i, "bboxareaid"))
        {
            new station[256];
            GetPVarString(i, "BoomboxURL", station, sizeof(station));
            if(areaid == GetPVarInt(i, "bboxareaid"))
            {
                PlayAudioStreamForPlayer(playerid, station, GetPVarFloat(i, "bposX"), GetPVarFloat(i, "bposY"), GetPVarFloat(i, "bposZ"), 30.0, 1);
                SendClientMessage(playerid, COLOR_GREY, " You are listening to music coming out of a nearby boombox.");
                return 1;
            }
        }
    }
    return 1;
}

public OnPlayerLeaveDynamicArea(playerid, areaid)
{
    foreach(Player, i)
    {
        if(GetPVarType(i, "bboxareaid"))
        {
            if(areaid == GetPVarInt(i, "bboxareaid"))
            {
                StopAudioStreamForPlayerEx(playerid);
                SendClientMessage(playerid, COLOR_GREY, " You have went far away from the boombox.");
                return 1;
            }
        }
    }
    return 1;
}

public Audio_OnPlay(playerid, handleid)
{
    //new string[128];
    //format(string, sizeof(string), "(Audio Plugin) Debug: Audio playback started for handle ID %d.", handleid);
    //SendClientMessage(playerid, 0xA9C4E4FF, string);
}
Reply


Messages In This Thread
brackets - by Nivniv2 - 17.05.2013, 20:08
Re: brackets - by gtakillerIV - 17.05.2013, 20:11
Re: brackets - by Faisal_khan - 17.05.2013, 20:13
Re: brackets - by Nivniv2 - 17.05.2013, 20:13
Re: brackets - by Faisal_khan - 17.05.2013, 20:16
Re: brackets - by Red_Dragon. - 17.05.2013, 20:17
Re: brackets - by ReVo_ - 17.05.2013, 20:22
Re: brackets - by SuperViper - 17.05.2013, 22:08

Forum Jump:


Users browsing this thread: 1 Guest(s)