So your test is in the main loop not a function are you sure of this? If it was in a function and you took global off the main p declaration, this would mean that the p in the function was not the global one but a locally created integer, and thus not a type hense the error message.
Test two local types
BlitzPlus Forums/BlitzPlus Programming/Test two local typesThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.