Vice City: Multiplayer

Off-Topic => Off-Topic General => Topic started by: MEGAMIND on Jul 11, 2018, 07:12 AM

Title: php signature
Post by: MEGAMIND on Jul 11, 2018, 07:12 AM
sup everyone how can we create a signature like thijns code
i have tried this but gives me errors when i solve thos errors then the image displays but with no text or kills etc..

<?php
$servername 
"localhost";
$username "root";
$password "root1";
$db "vcmpdb";

// Create connection
$conn = new mysqli($servername$username$password$db);
// Check connection
if ($conn->connect_error) {
    die(
"Connection failed: " $conn->connect_error);
}
//echo "connection successfull";

//$acc = "SELECT Name, IP, Level, Kills, Deaths, Cash, Bank, Joins, nogoto, WonLms, RandSpawn FROM Account";




if ( isset( $_REQUEST['nick'] ) )
{
$im  imagecreatefrompng("Signature_Background.png") or die("Cannot Create new GD image");
$stats  imagecolorallocate($im255208240);
$nick  imagecolorallocate($im25543178);
$font imageloadfont"Font.gdf" );
$sql  'SELECT * FROM Account WHERE Name = \''.addslashes$_REQUEST['nick'] ).'\'';


header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);

foreach ($db->query($sql) as $row)
{
imagestring($im$font10037$_REQUEST['nick'], $nick) or die("Cannot place Text");
imagestring($im$font38010$row['Kills'], $stats) or die("Cannot place Text");
imagestring($im$font38035$row['Deaths'], $stats) or die("Cannot place Text");
imagestring($im$font38060, ( ( ( $row$row['Kills'] ] > ) && ( $row$Fields['Deaths'] ] > ) ) ? round($row$Fields['Kills'] ] / $row$Fields['Deaths'] ],2) : ), $stats ) or die("Cannot place Text");
}

}
?>
if someone wants to check the url so try here which is the output http://wno-host.ddns.net:90/sign/sign.php?nick=MEGAMIND  @EK.IceFlake   @Doom_Kill3R and heres the input query http://wno-host.ddns.net:90/sign/
Title: Re: php signature
Post by: MEGAMIND on Jul 11, 2018, 06:56 PM
*BUMP* pls
Title: Re: php signature
Post by: MEGAMIND on Jul 13, 2018, 07:06 AM
*bump* or atleast someone fix me up that php code
Title: Re: php signature
Post by: MEGAMIND on Jul 16, 2018, 04:37 AM
*bump*
Title: Re: php signature
Post by: Namir on Jul 23, 2018, 05:26 PM
(https://i.imgur.com/kvqLzz6.png)
Resolved someone can lock dis topic .
Title: Re: php signature
Post by: ! on Jul 24, 2018, 12:54 PM
Is it necessary to lock this topic?
Title: Re: php signature
Post by: MEGAMIND on Jul 24, 2018, 01:09 PM
Quote from: ! on Jul 24, 2018, 12:54 PMIs it necessary to lock this topic?
nope as it is solved so its solved maybe someone may need help from this topic so he can ask it right here

so no need to lock