Hi I want to ask why it doesn't work for me to join the game when I buy a booster. In emulator 10.
tell me that
but when I throw it in a chat game it works.
I would like to ask if this code is spelled correctly.
tell me that
Code:
Failed loading user ship / ShipInitializationHandler ERROR
I would like to ask if this code is spelled correctly.
Code:
try{
if ($_SERVER['REQUEST_METHOD'] === 'POST' && Functions::IsLoggedIn()) {
$player = Functions::GetPlayer();
$notOnlineOrOnlineAndInEquipZone = (!Socket::Get('IsOnline', array('UserId' => $player['userId'], 'Return' => false)));
if ($notOnlineOrOnlineAndInEquipZone) {
if ($shop['items'][$itemId]['category'] == 'boosters') {
if ($shop['items'][$itemId]['category'] == 'boosters') { // Ships
//array_push($boosters->Type, $shop['items'][$itemId]['shipId']);
//1 mysql_fetch_object($boosters,$shop['items'][$itemId]['shipId']);
$boosters= $shop['items'][$itemId]['shipId'];
$status = true;
}
}
} else {
$json['message'] = 'ERROR, you are logged in, please log out';
}
}
}