Thanks for the tip but I'm still getting the warning 213: tag mismatch for the 2 lines I mentioned. I even removed the stock from the function checkcallbackflood yet nothing changes.
What happens if I just ignore those warnings and run the server with that script?