When I go to use the Send(); on a MTC packet, Prism just flat out gives me "Press any key to continue..." no error, now warning, nothing. The code I am using is
I ran prism with out the ->Send() and it works fine, but soon as I go to send it, it crashes...
Edit... Just realized I posted from wrong account >.<
<?php
public function onPrismError($errno, $errstr)
{
$MTC = new IS_MTC;
$MTC->UCID(255)->Text('^1ERROR: ^7['.$errno.'] '.$errstr)->Sound(4)->Send();
}
public function onPrismClose()
{
$MTC = new IS_MTC;
$MTC->UCID(255)->Text('^1FATAL ERROR. Restarting...')->Sound(4)->Send();
Cruise::sqlSaveAll();
}
public function __construct()
{
#PHP Stuff
set_error_handler(array($this, 'onPrismError'));
register_shutdown_function(array($this, 'onPrismClose'));
?>
Edit... Just realized I posted from wrong account >.<