samedi 16 juillet 2016

Radio System Help?

So I have this radio system but when you click the radio link in the dialog in game it grabs it by the list item. So

Code:

Dialog:LoadRadioThreeDialog(playerid, response, listitem, inputtext[])
{
        if(response)
        {
                foreach(Player, i)
                {
                        if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
                        {
                                new vehicle = GetPlayerVehicleID(playerid);
                                VehicleInfo[vehicle][carRadioOn] = 1;
                                format(song, sizeof(song), "%s", RadioLinks[listitem][aStationLink]);
                                PlayAudioStreamForPlayer(i, RadioLinks[listitem][aStationLink]);

                                
                        }
                }
        }
}
Here is my dialog code. You see I made this line

Code:

RadioLinks[listitem][aStationLink]
Grabs the station link by list item but that messages up because when you click the category each listitem is a different name but when you go to play it, it uses the same link from db.

So if I go into category pop and click [ID:34] Gay Fm it will play the 2 id link the database. How can I make it so it grabs the link of the id in the category?

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting.



Radio System Help?

Aucun commentaire:

Enregistrer un commentaire