Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[HELP] GTE Emulator
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="IPMB1" data-source="post: 341549" data-attributes="member: 26257"><p>Hi Devbest!</p><p></p><p>Me again xD I'm trying to add the little phoenix add on from the rival forum but i have 1 error <img src="/styles/default/xenforo/smilies/emojione/frown.png" class="smilie" loading="lazy" alt=":(" title="Frown :(" data-shortname=":(" /> I don't know how it works but i'd be thankful to you if you can fix it <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /> THANK YOU SO MUCH</p><p></p><p>Screenshots:</p><p><a href="http://prntscr.com/7lwql7" target="_blank">http://prntscr.com/7lwql7</a></p><p></p><p>Codes:</p><p>[CODE] case 147:</p><p> {</p><p> if (Params.Length >= 2)</p><p> {</p><p> using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())</p><p> {</p><p> dbClient.AddParamWithValue("userid", GoldTree.GetGame().GetClientManager().method_27(Params[1]));</p><p> DataTable dataTable = dbClient.ReadDataTable("SELECT extra_data, timestamp FROM cmdlogs WHERE user_id = @userid AND command='flagme' LIMIT 500;");</p><p></p><p></p><p> string motdMessage = "User " + Params[1] + " last 500 name changes: \n";</p><p> foreach (DataRow dataRow in dataTable.Rows)</p><p> {</p><p> string extraData = dataRow["extra_data"].ToString();</p><p> string newName = extraData.Substring(extraData.IndexOf(':') + 1).Split(' ')[1];</p><p> string oldName = extraData.Substring(extraData.IndexOf(':') + 1).Split(' ')[3];</p><p></p><p></p><p> DateTime whenChangedName = GoldTree.smethod_21(double.Parse((string)dataRow["timestamp"].ToString()));</p><p> motdMessage += whenChangedName.ToString() + " - Old name: " + oldName + " - New name: " + newName + "\n";</p><p> }</p><p></p><p></p><p> Session.SendNotification(motdMessage, 2);</p><p> }</p><p> return true;</p><p> }</p><p> else</p><p> {</p><p> return false;</p><p> }</p><p> }[/CODE]</p><p></p><p>Errors:</p><p>[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</p><p>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</p><p>[/CODE]</p><p></p><p>Thanks,</p><p>IPMB1</p></blockquote><p></p>
[QUOTE="IPMB1, post: 341549, member: 26257"] 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: [URL]http://prntscr.com/7lwql7[/URL] 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; } }[/CODE] 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 [/CODE] Thanks, IPMB1 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[HELP] GTE Emulator
Top