Hallo,
habe bei SRO Pserver ein Thread gemacht von meine Sifgnatur generator.
nun habe ich folgendes Problem...
wenn man alles macht und auf Signatur fertig macht.
kann man das Bild nicht speichern.
und da ich ncoh anfänger bin in PHP
weiss ich nicht was das problem ist.
Hier mal der Code...
PHP
- <?php
- header ("Content-type: image/png");
- $text = $_POST['texting'];
- $text2 = $_POST['texting2'];
- $text3 = $_POST['texting3'];
- $text4 = $_POST['texting4'];
- $text5 = $_POST['texting5'];
- $raced = $_POST['race'];
- $raced = $_REQUEST['race'];
- If ( $raced == "GrindRoad Blue") {
- $im = imagecreatefrompng("Blue.png");
- }
- If ( $raced == "GrindRoad Green") {
- $im = imagecreatefrompng("Green.png");
- }
- If ( $raced == "GrindRoad Red") {
- $im = imagecreatefrompng("Red.png");
- }
- If ( $raced == "GrindRoad Purple") {
- $im = imagecreatefrompng("Purple.png");
- }
- $color = imagecolorallocate($im, 255, 255, 255);
- $color2 = imagecolorallocate($im, 255, 255, 255);
- $width = imagesx($im);
- $height = imagesy($im);
- $font = 3;
- $font2 = 100;
- $text = $_REQUEST['texting'];
- $text2 = $_REQUEST['texting2'];
- $text3 = $_REQUEST['texting3'];
- $text4 = $_REQUEST['texting4'];
- $text5 = $_REQUEST['texting5'];
- $leftTextPos = ( $width - imagefontwidth(5)*strlen($text)-340);
- $leftTextPos3 = ( $width - imagefontwidth(5)*strlen($text3)-406);
- $leftTextPos4 = ( $width - imagefontwidth(5)*strlen($text4)-350);
- $leftTextPos5 = ( $width - imagefontwidth(5)*strlen($text5)-308);
- $text = $_REQUEST['texting'];
- $text2 = $_REQUEST['texting2'];
- $text3 = $_REQUEST['texting3'];
- $text4 = $_REQUEST['texting4'];
- $text5 = $_REQUEST['texting5'];
- imagestring($im, $font2, $leftTextPos, $height-102, "$text", $color);
- imagestring($im, $font, $leftTextPos3, $height-73, "Level: $text3", $color);
- imagestring($im, $font, $leftTextPos4, $height-57, "Server: $text4", $color2);
- imagestring($im, $font, $leftTextPos5, $height-40, "Clan: $text5", $color);
- ImagePNG($im);
- imagedestroy($im);
- ?>
Mfg
hoffe ich könnt mir helfen.