{"action":"created","issue":{"url":"https://api.github.com/repos/Chessnut/NutScript/issues/508","labels_url":"https://api.github.com/repos/Chessnut/NutScript/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/Chessnut/NutScript/issues/508/comments","events_url":"https://api.github.com/repos/Chessnut/NutScript/issues/508/events","html_url":"https://github.com/Chessnut/NutScript/issues/508","id":89187520,"number":508,"title":"getMoney() returning a boolean","user":{"login":"Rubberbandits","id":5221483,"avatar_url":"https://avatars.githubusercontent.com/u/5221483?v=3","gravatar_id":"","url":"https://api.github.com/users/Rubberbandits","html_url":"https://github.com/Rubberbandits","followers_url":"https://api.github.com/users/Rubberbandits/followers","following_url":"https://api.github.com/users/Rubberbandits/following{/other_user}","gists_url":"https://api.github.com/users/Rubberbandits/gists{/gist_id}","starred_url":"https://api.github.com/users/Rubberbandits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rubberbandits/subscriptions","organizations_url":"https://api.github.com/users/Rubberbandits/orgs","repos_url":"https://api.github.com/users/Rubberbandits/repos","events_url":"https://api.github.com/users/Rubberbandits/events{/privacy}","received_events_url":"https://api.github.com/users/Rubberbandits/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-18T03:25:00Z","updated_at":"2015-06-18T21:00:00Z","closed_at":null,"body":"I'm not entirely sure if it actually is or not, but using a check to see if getMoney is greater than or equal to another number returns as this error:\r\n\r\n[ERROR] lua/entities/slotmachine/init.lua:32: attempt to compare number with boolean\r\n"},"comment":{"url":"https://api.github.com/repos/Chessnut/NutScript/issues/comments/113288423","html_url":"https://github.com/Chessnut/NutScript/issues/508#issuecomment-113288423","issue_url":"https://api.github.com/repos/Chessnut/NutScript/issues/508","id":113288423,"user":{"login":"Chessnut","id":1689094,"avatar_url":"https://avatars.githubusercontent.com/u/1689094?v=3","gravatar_id":"","url":"https://api.github.com/users/Chessnut","html_url":"https://github.com/Chessnut","followers_url":"https://api.github.com/users/Chessnut/followers","following_url":"https://api.github.com/users/Chessnut/following{/other_user}","gists_url":"https://api.github.com/users/Chessnut/gists{/gist_id}","starred_url":"https://api.github.com/users/Chessnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chessnut/subscriptions","organizations_url":"https://api.github.com/users/Chessnut/orgs","repos_url":"https://api.github.com/users/Chessnut/repos","events_url":"https://api.github.com/users/Chessnut/events{/privacy}","received_events_url":"https://api.github.com/users/Chessnut/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T21:00:00Z","updated_at":"2015-06-18T21:00:00Z","body":"The player doesn't have a character object yet which is why you use the\npassed character object (see the 2nd argument named character)\n\nAs for the money thing I need to see more of the context to understand why\nit isn't working.\nOn Fri, Jun 19, 2015 at 01:11 Rubberbandits <notifications@github.com>\nwrote:\n\n> I now happen to get [ERROR] gamemodes/nstest/schema/hooks/sh_hooks.lua:2:\n> attempt to perform arithmetic on a nil value\n>\n> It's just some math, the line doesn't matter. What really matters is the\n> AdjustCreationData hook im using serverside.\n>\n> function SCHEMA:AdjustCreationData(client, character)\n> client:getChar():setData(\"strength\", 5)\n> client:getChar():setData(\"perception\", 5)\n> client:getChar():setData(\"endurance\", 5)\n> client:getChar():setData(\"charisma\", 5)\n> client:getChar():setData(\"intelligence\", 5)\n> client:getChar():setData(\"agility\", 5)\n> client:getChar():setData(\"luck\", 5)\n> client:getChar():setData(\"energywep\", 10)\n> client:getChar():setData(\"explosive\", 10)\n> client:getChar():setData(\"guns\", 10)\n> client:getChar():setData(\"lockpick\", 10)\n> client:getChar():setData(\"medicine\", 10)\n> client:getChar():setData(\"meleewep\", 10)\n> client:getChar():setData(\"repair\", 10)\n> client:getChar():setData(\"science\", 10)\n> client:getChar():setData(\"sneak\", 10)\n> client:getChar():setData(\"speech\", 10)\n> client:getChar():setData(\"survival\", 10)\n> client:getChar():setData(\"unarmed\", 10)\n> client:getChar():setData(\"totalTagged\", 0)\n> client:getChar():setData(\"playerStatsChosen\", 0)\n> end\n>\n> apparently, that's not setting any data. Is there a limit to how many\n> entries I can make?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Chessnut/NutScript/issues/508#issuecomment-113243171>.\n>\n"}}