Index · Preferences · Help
Announcements · Advertisements · Show and Tell · Work In Progress · Code Problems · Code Achievements · Classified Adds · Tutorials · Resources · Game Discussion
Forum Search:

[Advanced Search]

[Messages in this Thread] [Return to Code Problems]

Author:Dbar910 (Person) [Posts]
Date:7/26/09 7:32 pm
Topic:Score Problen
Post ID:17
Code:
mob/proc/Kills()
  spawn(-1)
    var/list/records
    var/result = world.GetScores(key, "")
    if(isnull(result))
      src << "Sorry, the hub could not be contacted to record your score."
      return
    records = params2list(result)
    var/list/new_records = new
       new_records["Kills"] = max(kills, text2num(records["Kills"]| "0")) + 1


Problem description:

The problem im having is getting the score to add one for the score it is supposed to be for. I renamed the proc for just the one score to test it out but it counted it once and never again. i followed the guide on how to do it and what i want to know is after you make a proc what do you put to make it count for what your trying to get it to count for.


Example: Kills Level Arena Challenges Won

Messages in this Thread:

  Score Problen Dbar910 (7/26/09 7:32 pm)