Skip to content
This repository was archived by the owner on Jul 22, 2019. It is now read-only.
This repository was archived by the owner on Jul 22, 2019. It is now read-only.

Does not show the correct online #1

Description

@RuslanMelnychenko
$api = new sampBetterAPI('176.32.36.218', '7777', 3, false);
    $json = [
        'ip'            => $server[0],
        'port'          => $server[1],
        'hostname'      => $api->info('hostname'),
        'players'       => $api->info('currentPlayers'),
        'maxplayers'    => $api->info('maxPlayers'),
        'online'        => $api->online
    ];

The list of players shows correctly, and the players and maxplayers is not.
Returns as follows:
players: 1, maxplayers: 0
But on the server 2 players and 100 slots

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions