src/Message.php
public function convertToRconData($id)
    {
        $idAndTypePacked = pack('VV', $id, $this->type);
        $endOfMessage    = chr(0) . chr(0);

        $message = $idAndTypePacked . $this->body . $endOfMessage;

        $data = pack("V", strlen($message)) . $message;

        return $data;
    }
public function convertToRconData($id)
    {
        $idAndTypePacked = pack('VV', $id, $this->type);
        $endOfMessage    = chr(0) . chr(0);

        $message = $idAndTypePacked . $this->body . $endOfMessage;

        $data = pack("V", strlen($message)) . $message;

        return $data;
    }
public function convertToRconData ( $ id ) { $ idAndTypePacked = pack ( 'VV' , $ id , $ this -> type ) ; $ endOfMessage = chr ( 0 ) . chr ( 0 ) ; $ message = $ idAndTypePacked . $ this -> body . $ endOfMessage ; $ data = pack ( "V" , strlen ( $ message ) ) . $ message ; return $ data ; }
The message id used for this message.
This will be encoded in the RconData.

@param int $id

@return string
The message id used for this message . This will be encoded in the RconData .