Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($i == 1)
- {
- $Playername=mysql_result($result,0,"Name");
- $Money=mysql_result($result,0,"Money");
- $Score=mysql_result($result,0,"PlayerLevel");
- $im = @imagecreatefrompng('inc/pages/imgp.png') or die ("Cannot select the correct image. Please contact the webmaster.");
- $text_color = imagecolorallocate($im, 197,197,199);
- $text_username = "$Name";
- $text_score = "$PlayerLevel";
- $text_money = "$Money";
- $font = 'arial.ttf';
- imagettftext($im, 16, 0, 20, 36, $text_color, $font, $text_username);
- imagettftext($im, 16, 0, 72, 69, $text_color, $font, $text_score);
- imagettftext($im, 16, 0, 72, 99, $text_color, $font, $text_money);
- imagepng($im);
- imagedestroy($im);
- } else echo('Username is not in our database. Please try again.');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement