PDA

View Full Version : Error if (!isdefined(level._effect["lantern_light"]))



Mariusz
4th January 2018, 19:53
******* 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...

IzNoGoD
5th January 2018, 20:34
in your map.gsc, put level._effect = []; before the maps/mp/_load::main(); line if you have no efx in map.

Mariusz
6th January 2018, 11:33
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.