problem with message counter

Discussion in 'General Support' started by titustitus98, May 14, 2019.

  1. titustitus98

    titustitus98 New Member

    Joined:
    May 14, 2019
    Messages:
    5
    Likes Received:
    0
    hi I have been trying to make a system where I have an event that adds 1 to a variable and then a command that returns the total amount of messages sent, but for some reason it won't work.
    so if anyone could point out/fix the issue it would be great

    Event:
    Code:
    {
      "name": "MessageCount",
      "temp": "",
      "event-type": "2",
      "_id": "DBWcT",
      "actions": [
        {
          "member": "2",
          "varName": "messagesnumber",
          "dataName": "messages",
          "defaultVal": "0",
          "storage": "1",
          "varName2": "messageAmount",
          "name": "Store Member Data"
        },
        {
          "member": "2",
          "varName": "messagesnumber",
          "dataName": "messages",
          "changeType": "1",
          "value": "1",
          "name": "Control Member Data"
        },
        {
          "member": "2",
          "varName": "messagesnumber",
          "dataName": "messages",
          "defaultVal": "0",
          "storage": "1",
          "varName2": "messageAmount",
          "name": "Store Member Data"
        }
      ]
    }

    command:
    Code:
    {
      "name": "mcount",
      "permissions": "NONE",
      "restriction": "1",
      "_id": "Olcfp",
      "actions": [
        {
          "member": "1",
          "varName": "",
          "dataName": "messageAmount",
          "defaultVal": "0",
          "storage": "1",
          "varName2": "messages",
          "name": "Store Member Data"
        },
        {
          "channel": "0",
          "varName": "",
          "message": "Your total amount of messages: ${tempVars(\"messages\")}",
          "storage": "0",
          "varName2": "",
          "name": "Send Message"
        }
      ],
      "comType": "0"
    }
     

Share This Page