i've "fixed" that
but i don't know whether this fix by me is correct
Code:
while ((iCurrent = find_ent_by_class(-1, "lud_missile")) !=-1){
new id = entity_get_edict(iCurrent, EV_ENT_owner)
remove_missile(id,iCurrent)
}
i thought maybe the error was because "iCurrent" is 0
so i changed"while ((iCurrent = find_ent_by_class(-1, "lud_missile")) !=-1)" to "while ((iCurrent = find_ent_by_class(-1, "lud_missile")) !=0)"
then the error messages were gone
another error in line 429 was fixed like this
Code:
entity_get_string(pToucher, EV_SZ_classname, szClassName, 31)
i changed it to
Code:
if (pToucher!=0)
{
entity_get_string(pToucher, EV_SZ_classname, szClassName, 31)
}
the modified missiles.sma is in the attachment
so if u wish,u can test it whether it worked well
Edit:the attachment once here was removed (20041003)
__________________