Thanks for the quick replies.
teame06:
The problem I'm having isn't really with the structure of the while loop, and the code you present is equivalent. I did try it out, just in case I missed something there, and the results are identical. The problem seems to be that cs_get_armoury_type just doesn't seem to be working.
v3x
cs_get_armoury_type is defined in cstrike.inc. It appears to have been added to cstrike.cpp on 7 Aug 2005 by jonnygothisgun
http://www.tcwonline.org/cgi-bin/vie...ke/cstrike.cpp
and if I vim cstrike_amxx_i386.so I can see that it is in there.
I guess it comes down to: if cs_get_armoury_type works, then I need scripting support because I am not using properly. If it doesn't work, then maybe this thread belongs in bugs.