The error definitely shows up when you start the server, you probably missed it. But yes, if you don't have ReAPI, of course you can't run plugins that use ReAPI functions.
And yes, replacing it with get_maxplayers() will work. Or better use get_players and eliminate the is_user_connected() check.