I've code run on this link
https://smartfoxserver.com/blog/how-to-schedule-timed-tasks-in-an-extension/
This code run successfull and I modify code
Code: Select all
public void run() {
trace("running code");
// New code
try {
String sql = "SELECT Id, IdUser, IdCategory FROM tblRequestGame";
IDBManager dbManager = getParentZone().getDBManager();
ISFSArray res = dbManager.executeQuery(sql, new Object[]{});
} catch (SQLException e) {
trace("Error: "+ e.getMessage());
}finally {
}
}
When I add new code, schedule run first time. After that, code not run
This code access DB, run correct. Help me