The equal sign goes before "schedule" in the script, not after. This is what the game says you have:
$AvatarCycleSchedule schedule = (5000, 0, AvatarCycle, %avatar);
If you're developing out of a .zip file, it's entirely possible that this is Blockland's fault. It's one of the reasons you shouldn't develop out of a .zip, just use a normal folder.