Results 1 to 3 of 3

Thread: Error if (!isdefined(level._effect["lantern_light"]))

  1. #1
    Private Mariusz's Avatar
    Join Date
    Sep 2017
    Posts
    67
    Thanks
    8
    Thanked 43 Times in 43 Posts

    Error if (!isdefined(level._effect["lantern_light"]))

    ******* script runtime error *******
    undefined is not an array, string, or vector: (file 'maps/mp/_load.gsc', line 113)
    if (!isdefined(level._effect["lantern_light"]))
    *
    called from:
    (file 'maps/mp/_load.gsc', line 12)
    lanterns[i] thread lanterns();
    *
    called from:
    (file 'maps/mp/bz_drewe.gsc', line 3)
    maps\mp\_load::main();
    *
    started from:
    (file 'maps/mp/bz_drewe.gsc', line 1)
    main()
    *
    ************************************
    quitting...

  2. The Following User Says Thank You to Mariusz For This Useful Post:

    kubislav23 (6th January 2018)

  3. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    in your map.gsc, put level._effect = []; before the maps/mp/_load::main(); line if you have no efx in map.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. #3
    Private Mariusz's Avatar
    Join Date
    Sep 2017
    Posts
    67
    Thanks
    8
    Thanked 43 Times in 43 Posts
    I deleted maps/mp/_load.gsc and now this map works. Don't understand at all.
    Other map says
    ******* script runtime error *******
    undefined is not an entity: (file 'maps/mp/bz_cage.gsc', line 11)
    clip delete();
    *
    started from:
    (file 'maps/mp/bz_cage.gsc', line 1)
    main()
    *
    ************************************
    quitting...

    Why such things happen? Earlier it worked correctly.
    Last edited by Mariusz; 6th January 2018 at 12:34. Reason: w

  5. The Following User Says Thank You to Mariusz For This Useful Post:

    kubislav23 (6th January 2018)

Posting Permissions

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