lipitb Posted August 20, 2013 Share Posted August 20, 2013 HI please Who return a shop vending title? trunk/src/map/vending.c if( SQL_ERROR == SQL->Query(mmysql_handle, "INSERT INTO `vending_list` " "(`char_id`,`shopname`,`item_id`,`amount`,`price`,`timestamp`) " "VALUES ('%d', '%s', '%d', '%d', '%d', 'CURRENT_TIMESTAMP')", sd->status.char_id, <RETURN A SHOP TITLE>, sd->status.cart[index], sd->vending.amount, sd->vending.value)) { Sql_ShowDebug(mmysql_handle); continue; } Quote Link to comment Share on other sites More sharing options...
goddameit Posted August 22, 2013 Share Posted August 22, 2013 sd->message Quote Link to comment Share on other sites More sharing options...
lipitb Posted August 22, 2013 Author Share Posted August 22, 2013 Hi! Who take the vending shop (shop name,item list, price, location x y,map) to database table? Thanks Quote Link to comment Share on other sites More sharing options...
lipitb Posted August 23, 2013 Author Share Posted August 23, 2013 Hi! Who take the vending shop (shop name,item list, price, location x y,map) to database table? Thanks Quote Link to comment Share on other sites More sharing options...
HI
please
Who return a shop vending title?
trunk/src/map/vending.c
if( SQL_ERROR == SQL->Query(mmysql_handle, "INSERT INTO `vending_list` "
"(`char_id`,`shopname`,`item_id`,`amount`,`price`,`timestamp`) "
"VALUES ('%d', '%s', '%d', '%d', '%d', 'CURRENT_TIMESTAMP')",
sd->status.char_id, <RETURN A SHOP TITLE>, sd->status.cart[index], sd->vending.amount, sd->vending.value))
{
Sql_ShowDebug(mmysql_handle);
continue;
}
Link to comment
Share on other sites