If you want a spam protection depending on time, you have to save the time in a global variable. Since you are not doing that in the above's code it won't work as you want it to.
About the tag mismatch:
PHP Code:
Float:last_save[33]
__________________