PDA

View Full Version : menu problem callbacksetup



malyczolg
27th June 2013, 10:19
hello , vip menu work , but how can i delete this error ?

******* 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()
*
************************************
********************

YuriJurek
27th June 2013, 12:52
Try
game["menu_vip"] = "menu_vip"; before pre-caching it. Because you have not defined the menu yet. Just a guess but worth trying.

IzNoGoD
27th June 2013, 15:21
Read the error. It says EXACTLY whats wrong.