David - 2011-06-12

Hi, i am using DB Pro to learn to make game and have been tryin to use file studio to generate the code for the maps i create into my games. However when I generate the code and make the relevant calls in the main program i et an error that says "User function decleration must contain no spaces, no numerical first character and include a set of brackets at line 134" pointing to this code generated from the .tsd file made in tile studio.

61: Function MapWidth (map)
62:      If map = LAYER_Tiles1_Map1 Then ReturnValueInt = 20
63: EndFunction ReturnValueInt