static public int GetRacesWon(string Username)
{
return int.Parse(MySQL.RunReturnQuery("SELECT `RacesWon` FROM `highscores` WHERE (Name='nock44')"));
}
static public int GetRacesWon(string Username)
{
return int.Parse(MySQL.RunReturnQuery("SELECT `RacesWon` FROM `highscores` WHERE (Name='"+Username+"')"));
}
string Retn = SQLCmd.ExecuteScalar().ToString();
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
<?php
$query = "'INSERT INTO `impulser_ProStreet`.`News` (`ID`, `Title`, `Text`, `Date`) VALUES (\'\', \'".$title."\', \'".$text."\', \'(TestDate)\');";
mysql_query($query) or die('Error, Insert query failed. :(');
?>
private void MCI(Packets.IS_MCI MCI)
{
for (int i = 0; i < Players.Count; i++)
{
decimal Speed = (decimal)((MCI.Info[i].Speed * (100f / 32768f)) * 3.6f);
decimal ConvSpeed = (decimal)(Speed * 25 / 1000);
Players[GetPlyIdx(MCI.Info[i].PLID)].Payout += ConvSpeed;
String CarSpeed = Speed * 5 / 8 + "";
string[] StrMsg = CarSpeed.Split('.');
Players[GetPlyIdx(MCI.Info[i].PLID)].RoundedSpeed = int.Parse(StrMsg[0]);
InSim.Send_BTN_CreateButton("^1Car Speed: ^7" + int.Parse(StrMsg[0]) + " MPH", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 130, 9, Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID, 2, false);
}
}
foreach (clsPlayer Plr in Players)
{
InitalizeHUD(Plr.UniqueID);
}