Results 1 to 10 of 19

Thread: date and time script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Dec 2016
    Posts
    30
    Thanks
    5
    Thanked 5 Times in 5 Posts
    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"]);
    Last edited by caldas; 13th June 2018 at 22:31.

Posting Permissions

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