felixms / arma-rcon-class-php

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

__construct doesnt work #38

Closed GhostikGER closed 5 years ago

GhostikGER commented 5 years ago

Is the script compatible with PHP7? I get the following error message:

Fatal error: Uncaught Exception: Wrong constructor parameter type(s)! in C:\xampp\htdocs\ArmaRConClass\rcon.php:77 Stack trace: #0 C:\xampp\htdocs\rCon\getPlayers.php(7): Nizarii\ARC->__construct('localhost', int, 'password') #1 {main} thrown in C:\xampp\htdocs\ArmaRConClass\rcon.php on line 77

But I see no real mistake in it ...

GhostikGER commented 5 years ago

I´m sry, i was stupid. I have wrong Port or IP Adress... Sry, I didn´t read it complete.