Results 1 to 3 of 3

Thread: menu problem callbacksetup

  1. #1
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts

    menu problem callbacksetup

    hello , vip menu work , but how can i delete this error ?
    PHP Code:
    ******* script runtime error *******
    cannot cast undefined to string: (file 'maps/mp/gametypes/_zommenus.gsc'line 25)
     
    precacheMenu(game["menu_vip"]);
                      *
    called from:
    (
    file 'maps/mp/gametypes/zom.gsc'line 99)
      
    thread maps\mp\gametypes\_zommenus::init();
             *
    called from:
    (
    file 'maps/mp/gametypes/_callbacksetup.gsc'line 15)
      [[
    level.callbackStartGameType]]();
              *
    started from:
    (
    file 'maps/mp/gametypes/_callbacksetup.gsc'line 10)
    CodeCallback_StartGameType()
    *
    ************************************
    ******************** 

  2. #2
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Try
    Code:
    game["menu_vip"] = "menu_vip";
    before pre-caching it. Because you have not defined the menu yet. Just a guess but worth trying.

  3. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Read the error. It says EXACTLY whats wrong.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •