[QUICK] help please in mysql signature.
#3

here's the code

PHP код:
// Creating of the .png image.  
    
header('Content-Type: image/png;'); // Don't touch this. We use this to tell the script we're working with an image. 
    
$im = @imagecreatefrompng('mypicture.png') or die("Cannot select the correct image. Please contact the webmaster."); // Don't forget to put your picture there. Eg: playersig.png 
    
$text_color imagecolorallocate($im197,197,199); // RED, GREEN, BLUE --> Go to www.colorpicker.com, select a nice color, copy the R/G/B letters provided by colorpicker and put them here. 
    
$text_username "$Playername"// This gets the information: player name to be showed in the picture. 
    
$text_score "$Score"// Same as above but with score. 
    
$text_money "$Money"// Same as above but with money. 
    
$font 'myfont.ttf'//Upload your custom font to the directory where this file is placed. Then change the name here. 
    /* USAGE OF THE imagettftext: First ($im) shouldn't be changed. (16) is the text-size. (0) is the angle of your text. Change it, and you'll see what's going on. (20) is de X-coordinate of the text. 
    (36) is the Y-coordinate of the text. */ 
    
imagettftext($im1602036$text_color$font$text_username); // Prints the username in the picture.  
    
imagettftext($im1607269$text_color$font$text_score); // Prints the score in the picture. 
    
imagettftext($im1607299$text_color$font$text_money); // Prints the money in the picture. 
    
imagepng($im); 
    
imagedestroy($im); 
and here's the image

Reply


Messages In This Thread
[QUICK] help please in mysql signature. - by Champ - 19.10.2013, 17:32
Re: [QUICK] help please in mysql signature. - by Patrick - 19.10.2013, 17:36
Re: [QUICK] help please in mysql signature. - by Champ - 19.10.2013, 17:39
Re: [QUICK] help please in mysql signature. - by Patrick - 19.10.2013, 17:45
Re: [QUICK] help please in mysql signature. - by Champ - 19.10.2013, 17:45
Re: [QUICK] help please in mysql signature. - by Champ - 19.10.2013, 18:01
Re: [QUICK] help please in mysql signature. - by -Prodigy- - 19.10.2013, 18:07
Re: [QUICK] help please in mysql signature. - by Champ - 19.10.2013, 18:09
Re: [QUICK] help please in mysql signature. - by -Prodigy- - 19.10.2013, 18:15
Re: [QUICK] help please in mysql signature. - by Champ - 19.10.2013, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)