@@ -253,7 +253,7 @@ int chmapif_parse_getmapname(int fd, int id){
|
||||
mapbuf = RFIFOP(fd,4);
|
||||
RFIFOSKIP(fd,RFIFOW(fd,2));
|
||||
|
||||
ShowStatus("Map-Server %d connected: %d maps, from IP %d.%d.%d.%d port %d.\n",
|
||||
ShowStatus("Map-Server %d connected: %" PRIuPTR " maps, from IP %d.%d.%d.%d port %d.\n",
|
||||
id, map_server[id].map.size(), CONVIP(map_server[id].ip), map_server[id].port);
|
||||
ShowStatus("Map-server %d loading complete.\n", id);
|
||||
|
||||
@@ -397,7 +397,7 @@ int chmapif_parse_reqsavechar(int fd, int id){
|
||||
|
||||
if (size - 13 != sizeof(struct mmo_charstatus))
|
||||
{
|
||||
ShowError("parse_from_map (save-char): Size mismatch! %d != %d\n", size-13, sizeof(struct mmo_charstatus));
|
||||
ShowError("parse_from_map (save-char): Size mismatch! %d != %" PRIuPTR "\n", size-13, sizeof(struct mmo_charstatus));
|
||||
RFIFOSKIP(fd,size);
|
||||
return 1;
|
||||
}
|
||||
@@ -967,7 +967,7 @@ int chmapif_parse_save_scdata(int fd){
|
||||
memcpy (&data, RFIFOP(fd, 14+i*sizeof(struct status_change_data)), sizeof(struct status_change_data));
|
||||
if( i > 0 )
|
||||
StringBuf_AppendStr(&buf, ", ");
|
||||
StringBuf_Printf(&buf, "('%d','%d','%hu','%d','%d','%d','%d','%d')", aid, cid,
|
||||
StringBuf_Printf(&buf, "('%d','%d','%hu','%d','%ld','%ld','%ld','%ld')", aid, cid,
|
||||
data.type, data.tick, data.val1, data.val2, data.val3, data.val4);
|
||||
}
|
||||
if( SQL_ERROR == Sql_QueryStr(sql_handle, StringBuf_Value(&buf)) )
|
||||
|
||||
Reference in New Issue
Block a user