Make sure that every function you declare has parentheses after it.
void autoexec()
void MapInit()
Make sure that every function's code is surrounded by brackets.
void autoexec()
{
code...
}
void MapInit()
{
code....
}
There are only one or two functions in the tutorial, so this shouldn't be too hard. Also, make sure you don't have any EXTRA brackets, as that might do funky stuff too.