28.12.2010, 22:01
And if this is the registration query, you could set the default values for some columns(ID=autoincrement, HP, starting money, level, etc) and only insert that ones that are particular as: playername, password, etc.
And you'll only have to do
This way, the colomns that you don't specify, are automatically filled with the default values.
And you'll only have to do
Код:
format(Query, sizeof(Query), "INSERT INTO `members` (`playername`, `password`, `email`) VALUES ( '%s', '%s', '%s'",name,pass, email);