I get this error while executing this code:
for( $iii = 0; $iii < $tot_layers; $iii++ )
{
$Lrow = mysql_fetch_array($Lresult);
if($HTTP_POST_VARS[$Lrow['name']] != 'spacer.gif')
{
if($nulavatar == false)
{
$sprite_1 = @$imagecreate($phpbb_root_path.$sprites_path.'/'.$HTTP_POST_VARS[$Lrow['name']]);
$nulavatar = true;
}
else
{
$image = @$imagecreate($phpbb_root_path.$sprites_path.'/'.$HTTP_POST_VARS[$Lrow['name']]);
@imagecopy ($sprite_1, $image, 0, 0, 0, 0, $tot_width, $tot_height);
@ImageDestroy($image);
}
}
}
$save = $userdata['user_id'];
imagepng($sprite_1, $phpbb_root_path . $chars_path . '/' . $save . '.png');
imagedestroy($sprite_1);
i searched all over the net and i didnt find the solution, so please help me before i pull all of my hair out of my skull :D