EDIT: Jer's response is right—I didn't pay attention to the variables—but if you want to support v5, keep the below in mind too.
Are you using v6? The only thing I see is that the scheduleEvent needs another parameter to support v5 and below. Functions like trigger, scheduleEvent, etc. all require an extra parameter for passing data, even if you don't want to use it. So just add another parameter (null will work fine) to the scheduleevent:
PHP Code:
scheduleEvent(1, "onUnFreeze", null);
edit 2: on second reading it's clear the variables are at least part of the problem. You're using "canmove" in some cases and "client.canmove" in others. If you change them all to "canmove" you should be fine, but the real solution is to organize your code better (see above).