Let's take a look at your code here:
Code:
tEnt = find_ent_by_class(-1, "weaponbox")
while(tEnt > 0) {
Let's say it finds a weaponbox with an id of 37. tEnt is now 37. Now you're telling the plugin that as long as tEnt (37 in this case) is larger than 0 (which it is), then do what you tell it to. However, tEnt remains 37 forever and ever and ever so it keeps looping and causes an infinite loop, thus crashing it. The correct way for looping through all entities would be:
Code:
while((tEnt = find_ent_by_class(tEnt,"weaponbox")) != 0) {
This infinite loop error occurs twice in your code.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS