Hey Guys, could you help me see the problem? Thx.
---------------------------it concerns this belowPHP Code:
******* script runtime error *******
undefined is not an entity: (file 'scripts/shop.gsc', line 330)
weap hide();
*
called from:
(file 'scripts/shop.gsc', line 107)
for(i=0;i<randomboxes.size;i++) randomboxes[i] thread randombox(randomweaps[i]);
*
called from:
(file 'scripts/ballerina.gsc', line 550)
thread scripts\shop::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()
*
************************************
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)
PHP Code:
randombox(weap)
{
weap hide();
o = weap.origin;
cost = 500;
// init set of weapons in this randombox
self.weapons = [];
self.weaponsModel = [];