ciao a tutti, premetto la mia poca dimistichezza con questo linguaggio. Ho un piccolo problema con una funzione che è presente su una mod per game
codice:
for ($i=0; $i<$player_cnt; $i++)
{
$i_rcon_string = $output[$i];
if ($i_rcon_string != '')
{
$pat[0] = "/^\s+/";
$pat[1] = "/\s{2,}/";
$pat[2] = "/\s+\$/";
$rep[0] = "";
$rep[1] = " ";
$rep[2] = "";
$i_rcon_string = preg_replace($pat,$rep,$i_rcon_string);
unset($tmp2);
if (ereg("[[:space:]][0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}", $i_rcon_string, $tmp2))
{
$i_ip = substr($tmp2[0],1);
} else $i_ip = '';
purtroppo mi da errore sulla riga dopo unset($tmp2).
l'errore preciso che mi da sul browser è questo:
codice:
Deprecated: Function ereg() is deprecated in C:\Program Files\EasyPHP5.3.0\www\php_rcon\rules_checker\rcon-rules.php on line 215
Faccio presente che sul pc ho installato easyphp 5.3
grazie a tutti per la disponibilità.
ciao