Results 1 to 10 of 14

Thread: COD4 Need help with saving data

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ... connecting
    Join Date
    Oct 2015
    Location
    Netherlands
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    My apologies if I made myself unclear. I have no reason to use files, it just seemed the best solution to me so hence my focus on those. Any other possible methods are welcome (such as seta as kung foo man says).
    Also, it was not meant as a request but as a question/seeking advice on what to do.

    I do have a question about the seta function. I cannot find the function to read a cvar, is this even possible? Because that I was what I need to check if the map is in a cvar.

    My apologies and thanks!

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by TheHawk1337 View Post
    My apologies if I made myself unclear. I have no reason to use files, it just seemed the best solution to me so hence my focus on those. Any other possible methods are welcome (such as seta as kung foo man says).
    Also, it was not meant as a request but as a question/seeking advice on what to do.

    I do have a question about the seta function. I cannot find the function to read a cvar, is this even possible? Because that I was what I need to check if the map is in a cvar.

    My apologies and thanks!
    I am getting a bit tired of having to repeat myself - you CANNOT - that means no, not, never - store strings in dvars once the server rotates.

    I'll say it again - what you are attempting to do cannot be done in COD4 - once the server roates, all dvar strings are emptied of their values.

    So, asking about reading a dvar is pointless given what you are attempting.

    You will have to go back to storing stuff on players using the setStat()/getStat() functions, and checking to make sure they've been with the server through X number of rotations. And then get the stored values off them.
    Last edited by Tally; 1st October 2015 at 19:37.

Tags for this Thread

Posting Permissions

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