[SOLVED] Problem with "Create object from name" in a Function

you need to use the functions syntax