Subscribe to gabehabe's on-topic ramblings        RSS Feed


Icon Leave Comment

So, some of you might've tested out that demo, huh? Notice anything lacking? Well, it's supposed to work online and show other players walking around, which it didn't in that release. It worked before I uploaded, then just stopped all of a sudden. Drove me insane, it did. <_<

Anyway, a quick tip for all of you. Don't mess with your database structures! :blush: Especially when you don't reference fields by names. Using the C MySQL API, you don't use row names, you just use a number. Example, a database structure such as this:
id   |   username

when put onto a MYSQL_ROW struct isn't as simple as named identifiers. Instead, consider this example: (row is our MYSQL_ROW)
row[0] // the id field
row[1] // the username field

When you go adding fields in between those... things fuck up. :)

0 Comments On This Entry


April 2018

151617181920 21

Request A Topic!

Want me to blog about something? Perhaps a language? A piece of software? A specific topic? Let me know! Even guests can post here on my blog!

If you would like to request a topic, please post a comment here and I'll get on it right away! smile.gif

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)

gabehabe's off-topic ramblings

Follow me on Twitter!
lol, my other blog died a horrible lonely death. Ah well.

Smiley of the [however often I change it]

IPB Image

Contact Me

e-mail: [email protected]

Google Talk: [email protected]
MSN: [email protected]
Yahoo: gabehabe (rarely used)
AIM: gabehabe (rarely used)

Skype: gabehabe

Want me to work for you? [click]