I just made the most interesting discovery. I complied the script on my Windows XP machine and tested on hlds on the same machine, It worked perfectly fine (except for the bug I said above). Then I transfered the .amxx file to my Windows Vista machine and tested it on hlds on that machine, it gave me the run time error.
Now isn't that strange?
Same exact plugin, but on two different os's = fail to work on one.