Raised This Month: $ Target: $400
 0% 

about amx_ejl_missiles.sma


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 09-27-2004 , 10:06  
Reply With Quote #5

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)
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode