Автор: Gy9vin: Дата: 05.20.2011
Пишет
pc.c: In function 'pc_set_hate_mob':
pc.c:1013: error: incompatible type for argument 2 of 'pc_setregistry'
make[1]: *** [obj_sql/pc.o] Error 1
make[1]: Leaving directory `/home/rouser/ea/src/map'
make: *** [map_sql] Error 2
ERROR!!! Something goes wrong, check your Source files on errors!
rouser@ea03:~$
//Attempts to set a mob.
int pc_set_hate_mob(struct map_session_data *sd, int pos, struct block_list *bl)
{
int class_;
if (!sd || !bl || pos < 0 || pos > 2)
return 0;
sd->hate_mob[pos] = -1;
class_ = status_get_class(bl);
if (!pcdb_checkid(class_)) {
unsigned int max_hp = status_get_max_hp(bl);
if ((pos == 1 && max_hp < 6000) || (pos == 2 && max_hp < 20000))
return 0;
if (pos != status_get_size(bl))
return 0; //Wrong size
}
sd->hate_mob[pos] = class_;
pc_setglobalreg(sd,sg_info[pos],class_+1);
clif_hate_info(sd, pos, class_, 1);
return 1;
}
Автор: : Дата: 01.01.1970