pBlueG / SA-MP-MySQL

MySQL plugin for San Andreas Multiplayer
BSD 3-Clause "New" or "Revised" License
196 stars 80 forks source link

Detect if connection is gone #249

Closed Walter-Correa closed 3 years ago

Walter-Correa commented 3 years ago

I'm using msql_query () and the OnQueryError callback doesn't work, so I was wondering how can I create a function to detect if the connection went down at any time?

maddinat0r commented 3 years ago

Use mysql_errno to check for errors after calling mysql_query.

Walter-Correa commented 3 years ago

Use mysql_errno to check for errors after calling mysql_query.

EDIT: Thanks