php echo !+rep! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: php echo !+rep! (
/showthread.php?tid=303036)
php echo !+rep! -
PawnoQ - 11.12.2011
hi,
i know this is not a php forum but this problem is really tiny so i thought id try it here.
PHP код:
//i get my money amount from a mysql database then i print it onto an image
//but my question is how would i not only display the money amount like e.g. just 200 but also a dollar sign behind it?
//Like: 200$
//how could i also echo the $ signs behind the money amount?
$Money=mysql_result($result,0,"Money");
$text_money = $Money;
imagettftext($im, 20, 0, 150, 174, $text_color, $font, $text_money);
//i tried things like:
echo'$';
//but it didnt work.
would be happy abot help.
Re: php echo !+rep! -
iTorran - 11.12.2011
Just a quick guess:
Re: php echo !+rep! -
PawnoQ - 11.12.2011
thx,
and where to place it?
like
PHP код:
imagettftext($im, 20, 0, 150, 174, $text_color, $font, $text_money);echo '\$';
pretty new to this...
Re: php echo !+rep! -
Sascha - 11.12.2011
$text_money = $Money."\$";
and no need for the echo..
At least I guess that this is what you wanted
Re: php echo !+rep! -
THE_KNOWN - 11.12.2011
PHP код:
$str = $Money."$";
echo $str;
Re: php echo !+rep! -
iTorran - 11.12.2011
EDIT: Way too late
Re: php echo !+rep! -
Sascha - 11.12.2011
Quote:
Originally Posted by iTorran
EDIT: Way too late 
|
you always are
Re: php echo !+rep! -
PawnoQ - 11.12.2011
THE_KNOWN'S method worked!
BUt no need for the echo as already mentioned.
thx alot!
reps+ for all