1º - Import files to DB - \schemas\logindb
cp_v4p_sites
cp_v4p_votelogs
cp_v4p_voters
2º - Copy Folders
vote4points\themes\default\voteforpoints --->>>> to your gamecp theme folder (e.g. flux\themes\default\voteforpoints)
vote4points\modules\voteforpoints --->>>> to your gamecp module folder (e.g. flux\modules\voteforpoints)
3º - Login as ADM and add your sites.
I have TeamViewer installed.... if u need PM...
i need help to find the correct funcion to save shop name in db.
sd->vending.amount = amount; // item amount
sd->status.cart[index].nameid // item name
sd->vending.value / item value
and to shop name?
sd->vending.title = title; ?????????
sd->vending.shop_title = shop_title; ?????????
thanks
I'm using
sd->message
Shop Name = asdasdasasd
db save this -> 284825544
works fine (clif.c) but when I type @at, the rows are deleted. how to delete only when I relog.
---------------------------------------------------------------------------------------------------------------
if (sd->state.autotrade) {
//Disassociate character from the socket connection.
session[fd]->session_data = NULL;
sd->fd = 0;
ShowInfo("Character '"CL_WHITE"%s"CL_RESET"' logged off (using @autotrade).\n", sd->status.name);
if (SQL_ERROR == Sql_Query(mmysql_handle, "DELETE FROM `xxxx` WHERE `char_id`='%d'", sd->status.char_id))
Sql_ShowDebug(mmysql_handle);
} else
if (sd->state.active) {
// Player logout display [Valaris]
ShowInfo("Character '"CL_WHITE"%s"CL_RESET"' logged off.\n", sd->status.name);
clif_quitsave(fd, sd);
} else {
//Unusual logout (during log on/off/map-changer procedure)
ShowInfo("Player AID:%d/CID:%d logged off.\n", sd->status.account_id, sd->status.char_id);
map_quit(sd);
}
} else {
ShowInfo("Closed connection from '"CL_WHITE"%s"CL_RESET"'.\n", ip2str(session[fd]->client_addr, NULL));
}
do_close(fd);
return 0;
}
Only in auto trade dont delete lines....
---------------------------------------------------------------------
void vending_closevending(struct map_session_data* sd)
{
nullpo_retv(sd);
if( sd->state.vending )
{
sd->state.vending = false;
clif_closevendingboard(&sd->bl, 0);
Sql_Query(mmysql_handle, "DELETE FROM `xxxx` WHERE `char_id`='%d'", sd->status.char_id);
}
}
----------------------------------------------------------------
How to get coordinates and map name?
Ex. payon (172, 219)
I use @at, but, when relog (show msg server still recognizes your last login) .
and dont remove lines...
[info]: Character 'Hawk' logged off (using @autotrade).