Raised This Month: $ Target: $400
 0% 

can't get cs_get_armoury_type to work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AndraX2000
Member
Join Date: Mar 2006
Location: 39°57' N 83°14' W
Old 03-27-2006 , 11:49   can't get cs_get_armoury_type to work
Reply With Quote #1

cs_get_armoury_type just doesn't seem to work for me. I am using version 1.70 on linux. No matter which entity it finds, it always thinks that it's type is "23".

Code:
public scour_map() {
	new entindex = -1
	while (entindex = find_ent_by_class(entindex,"armoury_entity")) {
		new weapType = cs_get_armoury_type(entindex)
		server_print("Found an ARMOURY[%d]: %d",entindex,weapType)
	}
	return PLUGIN_CONTINUE
}
shows the following: (btw I used fy_iceworld because there are lots of different armoury entities)
Code:
Found an ARMOURY[59]: 23
Found an ARMOURY[60]: 23
Found an ARMOURY[61]: 23
Found an ARMOURY[62]: 23
Found an ARMOURY[63]: 23
Found an ARMOURY[64]: 23
Found an ARMOURY[65]: 23
Found an ARMOURY[66]: 23
Found an ARMOURY[67]: 23
Found an ARMOURY[68]: 23
Found an ARMOURY[69]: 23
Found an ARMOURY[70]: 23
Found an ARMOURY[71]: 23
Found an ARMOURY[72]: 23
Found an ARMOURY[73]: 23
Found an ARMOURY[74]: 23
Found an ARMOURY[75]: 23
Found an ARMOURY[76]: 23
Found an ARMOURY[77]: 23
Found an ARMOURY[78]: 23
Found an ARMOURY[79]: 23
Found an ARMOURY[80]: 23
Found an ARMOURY[81]: 23
Found an ARMOURY[82]: 23
As you can see, it finds all of the armoury entites, it just thinks that each one is of type "23"
Is this just not working as of 1.70, or am I doing something wrong?
AndraX2000 is offline
 



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 16:40.


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