{"action":"created","issue":{"url":"https://api.github.com/repos/Bara20/TroubleinTerroristTown/issues/45","repository_url":"https://api.github.com/repos/Bara20/TroubleinTerroristTown","labels_url":"https://api.github.com/repos/Bara20/TroubleinTerroristTown/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/Bara20/TroubleinTerroristTown/issues/45/comments","events_url":"https://api.github.com/repos/Bara20/TroubleinTerroristTown/issues/45/events","html_url":"https://github.com/Bara20/TroubleinTerroristTown/issues/45","id":172241757,"number":45,"title":"Credits doing weird stuff","user":{"login":"iNilo","id":3451587,"avatar_url":"https://avatars.githubusercontent.com/u/3451587?v=3","gravatar_id":"","url":"https://api.github.com/users/iNilo","html_url":"https://github.com/iNilo","followers_url":"https://api.github.com/users/iNilo/followers","following_url":"https://api.github.com/users/iNilo/following{/other_user}","gists_url":"https://api.github.com/users/iNilo/gists{/gist_id}","starred_url":"https://api.github.com/users/iNilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iNilo/subscriptions","organizations_url":"https://api.github.com/users/iNilo/orgs","repos_url":"https://api.github.com/users/iNilo/repos","events_url":"https://api.github.com/users/iNilo/events{/privacy}","received_events_url":"https://api.github.com/users/iNilo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-08-20T00:07:38Z","updated_at":"2016-08-20T16:32:25Z","closed_at":"2016-08-20T11:17:00Z","body":"I've implemented 3 forwards\r\n\r\n```\r\npublic Action TTT_OnItemPurchased(int client, const char[] itemshort)\r\n{\r\n      PrintToConsoleAll(\"[debug] [TTT_OnItemPurchased] [client = %N | itemshort = %s]\",client,itemshort);\r\n}\r\n\r\npublic TTT_OnCreditsChanged(int client, int &credits)\r\n{\r\n\tPrintToConsoleAll(\"[debug] [TTT_OnCreditsChanged] [client = %N | credits = %i]\",client,credits);\r\n}\r\n\r\npublic Action TTT_OnCreditsChanged_Pre(int client, int oldcredits, int &newcredits)\r\n{\r\n\tPrintToConsoleAll(\"[debug] [TTT_OnCreditsChanged_Pre] [client = %N | old = %i || new = %i]\",client,oldcredits,newcredits);\r\n\tPrintToConsoleAll(\"[debug] [manual maths] [current credits = %i | new credit amount will be %i | meaning %i got added\",TTT_GetClientCredits(client),newcredits,(newcredits - TTT_GetClientCredits(client)));\r\n}\r\n```\r\n\r\nThis is the output... whats going on here ?\r\n\r\n> [debug] [TTT_OnCreditsChanged_Pre] [client = iNilo | old = 390 || new = 7631471]\r\n>[debug] [manual maths] [current credits = 390 | new credit amount will be 7631471 | meaning 7631081 got added\r\n>[debug] [TTT_OnCreditsChanged] [client = iNilo | credits = 7631471]\r\n"},"comment":{"url":"https://api.github.com/repos/Bara20/TroubleinTerroristTown/issues/comments/241209694","html_url":"https://github.com/Bara20/TroubleinTerroristTown/issues/45#issuecomment-241209694","issue_url":"https://api.github.com/repos/Bara20/TroubleinTerroristTown/issues/45","id":241209694,"user":{"login":"good-live","id":10183190,"avatar_url":"https://avatars.githubusercontent.com/u/10183190?v=3","gravatar_id":"","url":"https://api.github.com/users/good-live","html_url":"https://github.com/good-live","followers_url":"https://api.github.com/users/good-live/followers","following_url":"https://api.github.com/users/good-live/following{/other_user}","gists_url":"https://api.github.com/users/good-live/gists{/gist_id}","starred_url":"https://api.github.com/users/good-live/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/good-live/subscriptions","organizations_url":"https://api.github.com/users/good-live/orgs","repos_url":"https://api.github.com/users/good-live/repos","events_url":"https://api.github.com/users/good-live/events{/privacy}","received_events_url":"https://api.github.com/users/good-live/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T16:32:25Z","updated_at":"2016-08-20T16:32:25Z","body":"u need version 153771528 or higher"}}
{"actor":{"display_login":"good-live"}}