mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
Add equip / remove equp options for CompetitionGear
This commit is contained in:
parent
1ed1dd50f1
commit
10b768e82e
9 changed files with 160 additions and 22 deletions
|
@ -593,7 +593,7 @@ namespace HISP.Server
|
|||
sqlCommand.CommandText = "SELECT Gender FROM users WHERE Id=@playerId";
|
||||
sqlCommand.Parameters.AddWithValue("@playerId", playerId);
|
||||
sqlCommand.Prepare();
|
||||
string gender = (string)(sqlCommand.ExecuteScalar());
|
||||
string gender = sqlCommand.ExecuteScalar().ToString();
|
||||
sqlCommand.Dispose();
|
||||
|
||||
return gender;
|
||||
|
@ -687,7 +687,7 @@ namespace HISP.Server
|
|||
sqlCommand.CommandText = "SELECT Subscriber FROM userExt WHERE Id=@playerId";
|
||||
sqlCommand.Parameters.AddWithValue("@playerId", playerId);
|
||||
sqlCommand.Prepare();
|
||||
bool subscribed = (string)(sqlCommand.ExecuteScalar()) == "YES";
|
||||
bool subscribed = sqlCommand.ExecuteScalar().ToString() == "YES";
|
||||
sqlCommand.Dispose();
|
||||
|
||||
return subscribed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue