Which lines gives that error? Because this works fine for me:
Code: Select all
win1 = OpenWindow(0,0,0,x_res,y_res,#PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget,"Black Knight")
If InitSprite() <> 0 And InitMouse() <> 0 And OpenWindowedScreen(win1,0,0,x_res,y_res,0,0,0) <> 0
  If CreateMenu(0, WindowID(win1)) ; create menus
    MenuTitle("File")
    MenuItem(1, "New Game")
    MenuItem(2, "Load Game")
    MenuItem(3, "Save Game")
    MenuItem(4,"Exit Program")
    MenuTitle("Help")
    MenuItem(5, "About")
  EndIf
EndIf


 waiting for bericko now
 waiting for bericko now 






 This is great!!! Many thanks to Fred and to PureBasic Team for this state-of-the-art language.
  This is great!!! Many thanks to Fred and to PureBasic Team for this state-of-the-art language.