Well hello,
I have the codes, but i dont know where to add them, here it is:
Anybody knows where to place it?Code:Sql: CREATE TABLE `user_playlistyoutube` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `videoid` varchar(20) NOT NULL, `titre` varchar(50) NOT NULL, `descri` varchar(100) NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED public static int GetPlaylistYoutube = 2652; //Outgoing public static int GetPlaylistYoutube = 3920; //Incoming internal void GetPlaylistYoutube() { uint ItemId = Request.PopWiredUInt(); DataTable Ytplaylist; Room room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId); if (room == null || !room.CheckRights(this.Session, true)) return; using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { [Only registered and activated users can see links] dbClient.addParameter("id", room.OwnerId); Ytplaylist = dbClient.getTable(); } int CountVideo = Ytplaylist.Rows.Count; if (CountVideo == 0) return; GetResponse().Init(Outgoing.GetPlaylistYoutube); GetResponse().AppendUInt(ItemId); // Id ITEM GetResponse().AppendInt32(CountVideo); // Count Video foreach (DataRow Row in Ytplaylist.Rows) { GetResponse().AppendStringWithBreak(Row["videoid"].ToString()); //Id Video GetResponse().AppendStringWithBreak(Row["titre"].ToString()); // Title GetResponse().AppendStringWithBreak(Row["descri"].ToString()); // desc } GetResponse().AppendStringWithBreak("La playlist de " + room.Owner ); // Text box SendResponse(); } public static int PlayVideoYoutube = 48; //Outgoing public static int PlayVideoYoutube = 3371; //Incoming internal void PlayVideoYoutube() { GetResponse().Init(Outgoing.PlayVideoYoutube); GetResponse().AppendInt32(Request.PopWiredInt32()); // Id ITEM GetResponse().AppendStringWithBreak(Request.PopFixedString()); //Id VIDEO GetResponse().AppendInt32(0); // ??? GetResponse().AppendInt32(0); // ??? SendResponse(); }


Reply With Quote


