mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-10 07:05:41 +12:00
fix crashes
This commit is contained in:
parent
bbd715a464
commit
456cc2943b
2 changed files with 2 additions and 2 deletions
|
@ -1506,7 +1506,7 @@ namespace HISP.Game
|
||||||
{
|
{
|
||||||
string message = Messages.CityHallTop25ExperiencedPlayers;
|
string message = Messages.CityHallTop25ExperiencedPlayers;
|
||||||
int placing = 1;
|
int placing = 1;
|
||||||
foreach (int userId in Database.GetAdventurousPlayers())
|
foreach (int userId in Database.GetExperiencedPlayers())
|
||||||
{
|
{
|
||||||
string username = Database.GetUsername(userId);
|
string username = Database.GetUsername(userId);
|
||||||
int exp = Database.GetExperience(userId);
|
int exp = Database.GetExperience(userId);
|
||||||
|
|
|
@ -4826,7 +4826,7 @@ namespace HISP.Server
|
||||||
throw new Exception("Userid " + id + " Allready in UserExt.");
|
throw new Exception("Userid " + id + " Allready in UserExt.");
|
||||||
|
|
||||||
MySqlCommand sqlCommand = db.CreateCommand();
|
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("@id", id);
|
||||||
sqlCommand.Parameters.AddWithValue("@timestamp", Convert.ToInt32(new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds()));
|
sqlCommand.Parameters.AddWithValue("@timestamp", Convert.ToInt32(new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds()));
|
||||||
sqlCommand.Parameters.AddWithValue("@x", Map.NewUserStartX);
|
sqlCommand.Parameters.AddWithValue("@x", Map.NewUserStartX);
|
||||||
|
|
Loading…
Add table
Reference in a new issue