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?