felixms / arma-rcon-class-php

A lightweight client for sending commands easily to a BattlEye server.
MIT License
46 stars 22 forks source link

Fatal error: Uncaught Exception: Wrong constructor parameter type(s)! #39

Closed GhostikGER closed 5 years ago

GhostikGER commented 5 years ago

Hallo,

ich hab echt lange Probiert. Egal welche Zugänge ich eingebe, er gibt mir jedesmal die Fehlermeldung:

Fatal error: Uncaught Exception: Wrong constructor parameter type(s)!

$rcon = new ARC('12.123.123.12', 'Passwort', '2903'); $array = $rcon->getPlayersArray(); debug($array);

Wenn ich allerdings die Zugangsdaten mit einem RCON Programm von 2014 öffne, kann ich mich direkt verbinden! Ist die Version mittlerweile zu alt?

LG Max

nerdalertdk commented 5 years ago

'2903' should be 2903

The error says you have the wrong type in the paramenter, the port is an int not an string