Results 1 to 10 of 22

Thread: dvar not working after reopening menu

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    can you show a log of the iprintln(response) at the start of this function and a iprintln(response + "done") at the end
    Include desired behaviour and observed behaviour
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by IzNoGoD View Post
    can you show a log of the iprintln(response) at the start of this function and a iprintln(response + "done") at the end
    Include desired behaviour and observed behaviour
    any results?
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. #3
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by IzNoGoD View Post
    any results?
    Quote Originally Posted by Ni3ls View Post
    Maybe a dumb question, but i dont understand where I should place them?
    And the dvar for the images does work, which is
    Code:
    self setClientCvar("dvar_perk_1",value);
    Dont really understand where to place them. Inside the if's?

  4. #4
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    After you hit the perk button, press shift+0, find something similar to "Response: "+response+"/nWarn: "+warn" and paste here what the game printed. Maybe you can put another iprintln before the "if" to make sure the script is runs.
    Oh, and comment or delete these two lines:
    PHP Code:
    wait 0.5;
    self setClientCvar("perk_warn",""); 
    I think there is no man in the world who can read the warn message in half second.

Posting Permissions

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