Trooper, why do you use a new skill for the handle? Every Entity and all have a engine intern handle, which you can read out and safe.
Look in the Manual after handle and ptr_for_handle.
test your code with the following line:
you = scan_entity (newcoordinates, newwidth);
Without the you = i always got the same error, so maybe this could help.
And after that writh something like:
if(you)
{handleingid = you._handle_id; }
To be sure that the you pointer is set.
I hope i could help you.