fix crashes

This commit is contained in:
SilicaAndPina 2021-06-27 22:51:24 +12:00
parent bbd715a464
commit 456cc2943b
2 changed files with 2 additions and 2 deletions

View file

@ -1506,7 +1506,7 @@ namespace HISP.Game
{
string message = Messages.CityHallTop25ExperiencedPlayers;
int placing = 1;
foreach (int userId in Database.GetAdventurousPlayers())
foreach (int userId in Database.GetExperiencedPlayers())
{
string username = Database.GetUsername(userId);
int exp = Database.GetExperience(userId);

View file

@ -4826,7 +4826,7 @@ namespace HISP.Server
throw new Exception("Userid " + id + " Allready in UserExt.");
MySqlCommand sqlCommand = db.CreateCommand();
sqlCommand.CommandText = "INSERT INTO UserExt VALUES(@id,@x,@y,@timestamp,0,0,0,0,'','','',0,0,'NO',0,0,1000,1000,1000, 180)";
sqlCommand.CommandText = "INSERT INTO UserExt VALUES(@id,@x,@y,@timestamp,0,0,0,0,'','','',0,0,'NO',0,0,1000,1000,1000, 180,1)";
sqlCommand.Parameters.AddWithValue("@id", id);
sqlCommand.Parameters.AddWithValue("@timestamp", Convert.ToInt32(new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds()));
sqlCommand.Parameters.AddWithValue("@x", Map.NewUserStartX);