Phoenix 3.11.0 - Friend Request Error!
Hey I am helping a bud with his hotel and he is getting this error.. Idk what the problem is any help.
PHP Code:
Error: System.FormatException: Input string was not in a correct format.
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Convert.ToDouble(String value)
at Phoenix.HabboHotel.Users.Messenger.MessengerBuddy..ctor(UInt32 uint_1, String string_4, String string_5, String string_6, String string_7) in c:\Users\Makennan\Desktop\3.11.0\Phoenix\HabboHotel\Users\Messenger\MessengerBuddy.cs:line 92
at Phoenix.HabboHotel.Users.Messenger.HabboMessenger.method_0(UserDataFactory class12_0) in c:\Users\Makennan\Desktop\3.11.0\Phoenix\HabboHotel\Users\Messenger\HabboMessenger.cs:line 34
at Phoenix.HabboHotel.Users.Habbo.method_12() in c:\Users\Makennan\Desktop\3.11.0\Phoenix\HabboHotel\Users\Habbo.cs:line 589
at Phoenix.Communication.Messages.Messenger.MessengerInitMessageEvent.Handle(GameClient Session, ClientMessage Event) in c:\Users\Makennan\Desktop\3.11.0\Phoenix\Communication\Messages\Messenger\MessagerInitMessageEvent.cs:line 10
at Phoenix.HabboHotel.GameClients.GameClient.method_13(Byte[]& byte_0) in c:\Users\Makennan\Desktop\3.11.0\Phoenix\HabboHotel\GameClients\GameClient.cs:line 482
Re: Phoenix 3.11.0 - Friend Request Error!
I had the same problem when I used phx.
Re: Phoenix 3.11.0 - Friend Request Error!
@SubDababa Yeah, This is weird since I never had it happen before!
Phoenix 3.11.0 - Friend Request Error!
I guess you need to change something in the database.
Re: Phoenix 3.11.0 - Friend Request Error!
Is it the original Phoenix 3.11 or Gold Tree? I know that with Gold Tree if you have your friend stream enabled you got errors when you got a friend request.
Re: Phoenix 3.11.0 - Friend Request Error!
Try to set the windows decimal mark
Re: Phoenix 3.11.0 - Friend Request Error!
Yeah i think it is about the decimal.. ''Error: System.FormatException: Input string was not in a correct format.''
Re: Phoenix 3.11.0 - Friend Request Error!
Using Phoenix 3.11.0 or GoldTree?
Re: Phoenix 3.11.0 - Friend Request Error!
Re: Phoenix 3.11.0 - Friend Request Error!
You edited the source at some point?
Re: Phoenix 3.11.0 - Friend Request Error!
Nope it still dosent work. Idk why this is happening, ive never had this problem before with phx. And btw you wont be able to get on client after the dc until u restart emu, right?
Re: Phoenix 3.11.0 - Friend Request Error!
Quote:
Originally Posted by
neto737
You edited the source at some point?
Example:
English OS: ,
German OS: .
Re: Phoenix 3.11.0 - Friend Request Error!
Are you using UberCMS? Or holo or Lavvos? If so, then it was a common bug, I believe it was to do with the timestamp.
Re: Phoenix 3.11.0 - Friend Request Error!
Quote:
Originally Posted by
FatalLulz
Are you using UberCMS? Or holo or Lavvos? If so, then it was a common bug, I believe it was to do with the timestamp.
That's right but that has nothing todo with the cms.
Here is the method from line 92 from MessengerBuddy.cs :
Quote:
public MessengerBuddy(uint uint_1, string string_4, string string_5, string string_6, string string_7)
{
this.uint_0 = uint_1;
this.string_0 = string_4;
this.string_1 = string_5;
this.string_2 = string_6;
double timestamp;
if (double.TryParse(string_7, NumberStyles.Any, CustomCultureInfo.GetCustomCultureInfo(), out timestamp))
{
this.string_3 = PhoenixEnvironment.TimestampToDate(timestamp).ToString();
}
else
{
this.string_3 = PhoenixEnvironment.TimestampToDate(GoldTree.GetUnixTimestamp()).ToString();
}
this.bool_0 = false;
}
and line 34 from HabboMessenger.cs
Quote:
foreach (DataRow dataRow in dataTable_.Rows)
{
if (!this.hashtable_0.Contains((uint)dataRow["Id"]))
{
this.hashtable_0.Add((uint)dataRow["Id"], new MessengerBuddy((uint)dataRow["Id"], dataRow["username"] as string, dataRow["look"] as string, dataRow["motto"] as string, dataRow["last_online"] as string));
}
}
}
So the error comes from dataRow["last_online"]
Take a look into the db.
I would make a backup from the table and then I would update the last_online to 0
UPDATE `users` SET `last_online` = `0`;