Take a look into Newtonsoft.Json.Net. The MS one requires some quite specialised includes which may not be available on all systems (esp. if you are targetting an older .net version).
Project is already .NET 4.0, so it does not really matter.peppy wrote:
Take a look into Newtonsoft.Json.Net. The MS one requires some quite specialised includes which may not be available on all systems (esp. if you are targetting an older .net version).
did the client automatically downloaded the newest update?marcostudios wrote:
Hangs on loggin' in :c
class data {
public $id = "";
public $name = "";
public $link = "";
}
$sql = mysql_query("SELECT id, name, link FROM table");
$rows = array();
while($row = mysql_fetch_array($sql))
{
$e = new data();
$e->id = $row['id'];
$e->name = $row['name'];
$e->link = $row['link'];
$rows[] = $e;
}
print json_encode(rows$);
Sir k1x wrote:
code for php i have created, feel free to use it
class data {
public $id = "";
public $name = "";
public $link = "";
}
$sql = mysql_query("SELECT id, name, link FROM table");
$numResults = mysql_num_rows($sql);
$counter = 0;
print "[";
while($row = mysql_fetch_array($sql))
{
if (++$counter == $numResults) { //check for the last row in sql
$e = new data();
$e->id = $row['id'];
$e->name = $row['name'];
$e->link = $row['link'];
print json_encode($e);
} else {
$e = new data();
$e->id = $row['id'];
$e->name = $row['name'];
$e->link = $row['link'];
print json_encode($e);
print ",";
}
}
print "]";
class data {
public $id = "";
public $name = "";
public $link = "";
}
$sql = mysql_query("SELECT id, name, link FROM table");
$numResults = mysql_num_rows($sql);
$something = array();
while($row = mysql_fetch_array($sql))
{
$e = new data();
$e->id = $row['id'];
$e->name = $row['name'];
$e->link = $row['link'];
$something[] = $e;
}
print json_encode($something);
and that's how the magic is done thank youHexide wrote:
Sir k1x wrote:
code for php i have created, feel free to use it
class data {
public $id = "";
public $name = "";
public $link = "";
}
$sql = mysql_query("SELECT id, name, link FROM table");
$numResults = mysql_num_rows($sql);
$counter = 0;
print "[";
while($row = mysql_fetch_array($sql))
{
if (++$counter == $numResults) { //check for the last row in sql
$e = new data();
$e->id = $row['id'];
$e->name = $row['name'];
$e->link = $row['link'];
print json_encode($e);
} else {
$e = new data();
$e->id = $row['id'];
$e->name = $row['name'];
$e->link = $row['link'];
print json_encode($e);
print ",";
}
}
print "]";
Nononononono...
Don't create json manualy.
Just use multidimensional arrays instead.
System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))To solve this exception you have to install ShockWave Flash for Internet Explorer. Make sure you uncheck McF_sht (I dont wanna name dat program) Scan.
Q! is spoken "Queue", like to Queue up.XPJ38 wrote:
Excuse the silly question but... why is it called "Q! me up!"?
i've just checked the database and i found out that you don't even have an entry in the osu!-data-table.Caldozza wrote:
System.ArgumentOutOfRangeException: Index
and count must refer to a location within the
string.
Parameter name: count
at System.String.RemoveInternal(Int32
startIndex, Int32 count)
at System.String.Remove(Int32 startIndex, Int32
count)
at new_osu_client.Form1.AddItem(String s)
line: AddItem
I got this error report and seeings I am bad with computers I have come to ask for help if possible.
it should be, vista has .net framework 4.0 so it shouldnt be a problem.Payaya wrote:
Sooo Q! me up! can't run on Windows Vista ..?
Sniigel wrote:
The program gets an error when you try to login.
The forums is down, and the creator hasn't updated the thread in several days.
Is this still being made?
Would be so epic if this would work...
and sorry guy's for being not so active these days, but i had some serious issues irl that needed some re-code (get it? ehehehee. wow that was bad)Forum isn't down. The problem is in subdomain.
updates are coming soon :3
If you went around the forums just for a bit you know you shouldn't revive a long-time dead thread unless you have a really good reason to do it.Dionysaw wrote:
What happened to this? I like the idea.