Results 1 to 4 of 4

Thread: Same syntax, different semantic and result

  1. #1
    Private
    Join Date
    Feb 2013
    Posts
    27
    Thanks
    7
    Thanked 12 Times in 5 Posts

    Same syntax, different semantic and result

    Hey,

    Can somebody tell me, why the first way is a working way, and the another is dead end? So it's working fine, after that the array looks good
    PHP Code:
    maps GetCvar("scr_nextmap_maps");
    level.nextmap["maps"] = StrTok(maps","); 
    but in this case the array's size will be 0
    PHP Code:
    level.nextmap["maps"] = StrTok(GetCvar("scr_nextmap_maps"), ","); 
    The question is why?

  2. #2
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts

  3. The Following User Says Thank You to filthy_freak_ For This Useful Post:

    qwerty (24th September 2015)

  4. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    tl;dr: cod engine bug
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  5. The Following User Says Thank You to IzNoGoD For This Useful Post:

    qwerty (24th September 2015)

  6. #4
    Private
    Join Date
    Feb 2013
    Posts
    27
    Thanks
    7
    Thanked 12 Times in 5 Posts
    Allright, good to know, thanks!

Posting Permissions

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