09.02.2018, 23:49
Hey guys, I've noticed server crash after calling RconCommand from website. I was trying to reproduce and figured out point that when I spam my page with F5 crash occurs quickier (sometimes it crashes instantly, sometimes it gives stack underflow, invalid instruction and it's just doing interesting things). I did following to make sure that it's not related to script of the command (returned 1 in FS):
PHP file
Код:
public OnRconCommand(cmd[])
{
return 1;
}
Код:
<?php
require "main/SampRconAPI.php";
$connection = new SampRcon("127.0.0.1", 5555, "topsecret");
if($connection->connect()) {
$connection->Call("coins");
$connection->close();
}
?>

