Your STRING and VECTOR declarations are incorrect (vector(...) does not create a vector), they should read as follows:
STRING* s1 = str_create("humanspawn"); // you have to write ptr_remove(s1); at the end of your function
VECTOR loc;
Why do you use wait(1)s in your loop? This does not seem useful to me.
Your first loop is pretty strange, why don't you replace it completely with ent_for_name?
Your parameter(s) of c_ignore are wrong, there is a 0 missing (check the manual).
From what I can see you never set found to anything above zero (or initialize it at all).