{"action":"closed","issue":{"url":"https://api.github.com/repos/pBlueG/SA-MP-MySQL/issues/160","repository_url":"https://api.github.com/repos/pBlueG/SA-MP-MySQL","labels_url":"https://api.github.com/repos/pBlueG/SA-MP-MySQL/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/pBlueG/SA-MP-MySQL/issues/160/comments","events_url":"https://api.github.com/repos/pBlueG/SA-MP-MySQL/issues/160/events","html_url":"https://github.com/pBlueG/SA-MP-MySQL/issues/160","id":239625374,"number":160,"title":"Not actually a plugin bug but inquiry","user":{"login":"kubkox3","id":29288175,"avatar_url":"https://avatars2.githubusercontent.com/u/29288175?v=4","gravatar_id":"","url":"https://api.github.com/users/kubkox3","html_url":"https://github.com/kubkox3","followers_url":"https://api.github.com/users/kubkox3/followers","following_url":"https://api.github.com/users/kubkox3/following{/other_user}","gists_url":"https://api.github.com/users/kubkox3/gists{/gist_id}","starred_url":"https://api.github.com/users/kubkox3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubkox3/subscriptions","organizations_url":"https://api.github.com/users/kubkox3/orgs","repos_url":"https://api.github.com/users/kubkox3/repos","events_url":"https://api.github.com/users/kubkox3/events{/privacy}","received_events_url":"https://api.github.com/users/kubkox3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-29T22:09:47Z","updated_at":"2017-07-24T20:15:51Z","closed_at":"2017-07-24T20:15:50Z","body":"Hello, today I've investigated that my MysQL query has thrown an error like this for first time. It probably has something with MySQL server that I used.\r\n[16:28:19] [ERROR] error #2013 while executing query \"SELECT * FROM `player_main` WHERE `name` = REPLACE('Kubko Dev', ' ', '_')\": Lost connection to MySQL server during query\r\n\r\nWell, but when my query failed the callback specified in tquery function didn't get called. So I was thinking about solving it and I found OnQueryError callback. It's fine actually, there's parameter for specified callback but not format meaning I can't determinate which playerid has fired the query. I would actually know alternative how to possibly determinate which playerid has the error through loop by picking it's WHERE name (Kubko_Dev at this case) and variable player loop check inside that OnQueryError.\r\n\r\nBut isn't here more efficient way I could determinate that playerid parsed in tquery?\r\nThat's why I would like to do it, becouse MDC is scripted that way it suspends cursor till query finishes. But I can't catch this error to display on player's MDC unless I get that playerid inside OnQueryError.\r\n\r\nThank you!\r\n\r\n![up](https://user-images.githubusercontent.com/29288175/27712549-cc695bc4-5d27-11e7-95d5-dffce9e510bc.png)\r\n\r\n"}}
{"actor":{"display_login":"maddinat0r"}}