Code:
******* script runtime error *******
pair 'its ' and 'Wed Jun 13 22:25:49 2018' has unmatching types 'localized string' and 'string': (file 'maps/pam/precache.gsc', line 191)
game["datetimenow"] = &"its " + getlocaltime() + " on the server";
*
called from:
(file 'maps/pam/start_gametype.gsc', line 39)
maps\pam\precache::Precache();
*
called from:
(file 'maps/pam/dm.gsc', line 24)
maps\pam\start_gametype::Init();
*
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 17)
[[level.callbackStartGameType]]();
*
started from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)
CodeCallback_StartGameType()
*
************************************
********************
ERROR: script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)
********************
----- Server Shutdown -----
Code:
localtime = newHudElem();
localtime.x = 70;
localtime.y = 460;
localtime.alignX = "left";
localtime.alignY = "top";
localtime.fontScale = 0.8;
localtime.color = (1, 0, 0);
localtime setText(game["datetimenow"]);
Code:
// datetime
game["datetimenow"] = &"its " + getlocaltime() + " on the server";
precacheString(game["datetimenow"]);