send_var_id expects a pointer to a user defined variable / struct. You're passing an entity pointer to it.

http://www.conitec.net/beta/asend_var.htm !


Always learn from history, to be sure you make the same mistakes again...