parent
440c6ef5bb
commit
2e770337ea
@ -1531,7 +1531,7 @@ int char_make_new_char_sql(struct char_session_data* sd, char* name_, int str, i
|
|||||||
//Retrieve the newly auto-generated char id
|
//Retrieve the newly auto-generated char id
|
||||||
char_id = (int)Sql_LastInsertId(sql_handle);
|
char_id = (int)Sql_LastInsertId(sql_handle);
|
||||||
//Give the char the default items
|
//Give the char the default items
|
||||||
for (k = 0; k <= MAX_STARTITEM && tmp_start_items[k].nameid != 0; k ++) {
|
for (k = 0; k <= MAX_STARTITEM && tmp_start_items[k].nameid != 0; k++) {
|
||||||
if( SQL_ERROR == Sql_Query(sql_handle, "INSERT INTO `%s` (`char_id`,`nameid`, `amount`, `equip`, `identify`) VALUES ('%d', '%hu', '%hu', '%hu', '%d')", schema_config.inventory_db, char_id, tmp_start_items[k].nameid, tmp_start_items[k].amount, tmp_start_items[k].pos, 1) )
|
if( SQL_ERROR == Sql_Query(sql_handle, "INSERT INTO `%s` (`char_id`,`nameid`, `amount`, `equip`, `identify`) VALUES ('%d', '%hu', '%hu', '%hu', '%d')", schema_config.inventory_db, char_id, tmp_start_items[k].nameid, tmp_start_items[k].amount, tmp_start_items[k].pos, 1) )
|
||||||
Sql_ShowDebug(sql_handle);
|
Sql_ShowDebug(sql_handle);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user