PHP Help,System Images
#1

I have:

PHP код:
<?php
    
@include "conf/config.php";
    
$nick trim(substr($_SERVER['PATH_INFO'], 1strpos($_SERVER['PATH_INFO'],".")-1));
    
$file = @file($servpatch."/scriptfiles/stats/".$nick);
    
$money substr(trim($file[0]),6);
    
$kills substr(trim($file[1]),6);
    
$deaths substr(trim($file[2]),7);
    
$adminsubstr(trim($file[4]),11);    
    
    
$im ImageCreateFromPng("img/stats.png");
    
$string  '[FeK]Squad 4FuN';
    
$string3 'Player:'.$nick";
    
$string4 'Kills: '.$kills";
    
$string5 'Deaths: ' .$deaths";
    
$string6 'Grana: ' .$money";
    
$string7 'Admin: '.$admin";     
    
    
$purple imagecolorallocate($im53658);
    
$purple2 imagecolorallocate($im523654);
    
$green imagecolorallocate($im523654);
        
$im ImageCreateFromPng("img/stats.png");
        
$fnt "fonts/verdana.ttf";
    
$c ImageColorAllocate($im255255255);
    
            
ImageTTFText ($im1308521$purple2$fnt$string3) ;
    
ImageTTFText ($im11023552$purple2$fnt$string4);
    
ImageTTFText ($im1105052$purple2$fnt$string5);
    
ImageTTFText ($im1105072$purple2$fnt$string6);
    
ImageTTFText ($im11023572$purple2$fnt$string7);
    
ImageTTFText ($im70130131$green$fnt$string);
            
ImagePng($im);
         
ImageDestroy ($im);
?>
But he Generate:

It:


Help...

Example:
'Deaths:' for 'Deaths:10'

Please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)