RCON Problem

Reikenz

Member
Apr 5, 2018
64
3
Hello, i use rcon commands for automatic give badge my rcon function :
Code:
function RCON($header, $data = '') {
    $musData = $header . chr(1) . $data;

    $sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
    @socket_connect($sock, '127.0.0.1', '30001');
    @socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE);
    @socket_close($sock);
}
End this to send my rcon command :
Code:
RCON('give_user_badge', ''.$_SESSION['id'].'', 'BADGE_ID');

My error is :

Code:
System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau.
   à Plus.Communication.RCON.Commands.User.GiveUserBadgeCommand.TryExecute(String[] parameters) dans C:\Users\asus\Desktop\Emulator Source\Communication\RCON\Commands\User\GiveUserBadgeCommand.cs:ligne 31
   à Plus.Communication.RCON.Commands.CommandManager.Parse(String data) dans C:\Users\asus\Desktop\Emulator Source\Communication\RCON\Commands\CommandManager.cs:ligne 52
   à Plus.Communication.RCON.RCONConnection.OnCallBack(IAsyncResult iAr) dans C:\Users\asus\Desktop\Emulator Source\Communication\RCON\RCONConnection.cs:ligne 42

Can you help me please ;)
 

Users who are viewing this thread

Top