Please, it would like to know if this code that I made possesss some = error, helps me?=20 void hit2_bar(struct char_data * ch, struct char_data *k)=20 { *buf1 =3D (GET_HIT(k) * 100) / GET_MAX_HIT(k); if (*buf1 >=3D 80)=20 sprintf(buf, "&cW%s : &cB%d ", GET_NAME(k), *buf1); else if (*buf1 >=3D 60) sprintf(buf, "&cW%s : &cG%d ", GET_NAME(k), *buf1); else if (*buf1 >=3D 40) sprintf(buf, "&cW%s : &cY%d ", GET_NAME(k), *buf1); else if (*buf1 >=3D 20) sprintf(buf, "&cW%s : &cR%d ", GET_NAME(k), *buf1); else if (*buf1 >=3D 0 ) sprintf(buf, "&cW%s : &cR-- &cL ", GET_NAME(k)); send_to_char(buf, ch); send_to_char("%&c0 \r\n", ch); } Tks. Eduardo Bertin. -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/24/03 PDT