Hey, viele PHX 3.11 Emulatoren haben das Problem, dass nachdem Client reload der Style in der Wardrobe nicht gespeichert wird, hab dann in C# bisschen umcodiert, es funktioniert jedoch immer noch nicht, hier die zwei Dateien:
C#
using System;
using System.Data;
namespace ns0
{
internal sealed class Class168 : Interface0
{
public void imethod_0(Class16 class16_0, Class18 class18_0)
{
GClass5 gClass = new GClass5(267u);
gClass.method_13(class16_0.method_2().method_20().method_2("habbo_club"));
if (class16_0.method_2().method_20().method_2("habbo_club"))
{
using (Class6 @class = Phoenix.smethod_12().method_0())
{
@class.method_0("userid", class16_0.method_2().uint_0);
DataTable dataTable = @class.method_3("SELECT slot_id, look, gender FROM user_wardrobe WHERE user_id = @userid;");
if (dataTable == null)
{
gClass.method_9(0);
}
else
{
gClass.method_9(dataTable.Rows.Count);
foreach (DataRow dataRow in dataTable.Rows)
{
gClass.method_11((uint)dataRow["slot_id"]);
gClass.method_7((string)dataRow["look"]);
gClass.method_7((string)dataRow["gender"]);
}
}
}
class16_0.method_14(gClass);
}
else
{
using (Class6 @class = Phoenix.smethod_12().method_0())
{
@class.method_0("userid", class16_0.method_2().uint_0);
DataTable dataTable = @class.method_3("SELECT slot_id, look, gender FROM user_wardrobe WHERE user_id = @userid;");
if (dataTable == null)
{
gClass.method_9(0);
}
else
{
gClass.method_9(dataTable.Rows.Count);
foreach (DataRow dataRow in dataTable.Rows)
{
gClass.method_11((uint)dataRow["slot_id"]);
gClass.method_7((string)dataRow["look"]);
gClass.method_7((string)dataRow["gender"]);
}
}
}
class16_0.method_14(gClass);
}
}
}
}
Alles anzeigen
C#
using System;
namespace ns0
{
internal sealed class Class167 : Interface0
{
public void imethod_0(Class16 class16_0, Class18 class18_0)
{
uint num = class18_0.method_15();
string text = class18_0.method_9();
string text2 = class18_0.method_9();
//if (AntiMutant.smethod_0(text, text2))
{
using (Class6 @class = Phoenix.smethod_12().method_0())
{
@class.method_0("userid", class16_0.method_2().uint_0);
@class.method_0("slotid", num);
@class.method_0("look", text);
@class.method_0("gender", text2.ToUpper());
if (@class.method_4("SELECT null FROM user_wardrobe WHERE user_id = @userid AND slot_id = @slotid LIMIT 1") != null)
{
@class.method_1("UPDATE user_wardrobe SET look = @look, gender = @gender WHERE user_id = @userid AND slot_id = @slotid LIMIT 1;");
}
else
{
@class.method_1("INSERT INTO user_wardrobe (user_id,slot_id,look,gender) VALUES (@userid,@slotid,@look,@gender)");
}
}
}
}
}
}
Alles anzeigen
Wieso will es nicht in die Datenbank INSERTEN? "@class.method_1("INSERT INTO user_wardrobe (user_id,slot_id,look,gender) VALUES (@userid,@slotid,@look,@gender)""