[HELP] GTE Emulator

IPMB1

Member
Jan 1, 2013
249
20
Hi Devbest!

Me again xD I'm trying to add the little phoenix add on from the rival forum but i have 1 error :( I don't know how it works but i'd be thankful to you if you can fix it :) THANK YOU SO MUCH

Screenshots:


Codes:
Code:
                                                case 147:
                                                    {
                                                        if (Params.Length >= 2)
                                                        {
                                                            using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
                                                            {
                                                                dbClient.AddParamWithValue("userid", GoldTree.GetGame().GetClientManager().method_27(Params[1]));
                                                                DataTable dataTable = dbClient.ReadDataTable("SELECT extra_data, timestamp FROM cmdlogs WHERE user_id = @userid AND command='flagme' LIMIT 500;");


                                                                string motdMessage = "User " + Params[1] + " last 500 name changes: \n";
                                                                foreach (DataRow dataRow in dataTable.Rows)
                                                                {
                                                                    string extraData = dataRow["extra_data"].ToString();
                                                                    string newName = extraData.Substring(extraData.IndexOf(':') + 1).Split(' ')[1];
                                                                    string oldName = extraData.Substring(extraData.IndexOf(':') + 1).Split(' ')[3];


                                                                    DateTime whenChangedName = GoldTree.smethod_21(double.Parse((string)dataRow["timestamp"].ToString()));
                                                                    motdMessage += whenChangedName.ToString() + " - Old name: " + oldName + " - New name: " + newName + "\n";
                                                                }


                                                                Session.SendNotification(motdMessage, 2);
                                                            }
                                                            return true;
                                                        }
                                                        else
                                                        {
                                                            return false;
                                                        }
                                                    }

Errors:
Code:
Warning    1    The variable 'e' is declared but never used    C:\Users\user\Desktop\Files\Flab Emulator V1.01\Gold Tree Emulator 3.0\HabboHotel\Game.cs    176    58    Gold Tree Emulator 3.0
Error    2    'GoldTree.GoldTree' does not contain a definition for 'smethod_21'    C:\Users\user\Desktop\Files\Flab Emulator V1.01\Gold Tree Emulator 3.0\HabboHotel\Misc\ChatCommandHandler.cs    3408    105    Gold Tree Emulator 3.0

Thanks,
IPMB1
 

Users who are viewing this thread

Top