PHP ImageTTFText - Colors - 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 ImageTTFText - Colors (
/showthread.php?tid=363998)
PHP ImageTTFText - Colors -
nGen.SoNNy - 29.07.2012
Hi guys! I have this:
PHP код:
ImageTTFText($img, 9, 0.0, 450, 85, $colorWhite, $fontSFS, "Race: " . $p["RacePoints"]);
And i want to color just one character from word "Race:" It's that possible?! Can somebody give me some ideas about how to to this thing?
Final Result:
Re: PHP ImageTTFText - Colors -
Misiur - 29.07.2012
Yup, but you have to separate this to 2 function calls. (I can't see final result so can't tell if this is what you want)
(assuming you add $colorRed)
PHP код:
ImageTTFText($img, 9, 0.0, 450, 85, $colorRed, $fontSFS, 'R');
ImageTTFText($img, 9, 0.0, 457, 85, $colorWhite, $fontSFS, "Race: {$p['RacePoints']}");
Tweak X in second function as needed.
Re: PHP ImageTTFText - Colors -
nGen.SoNNy - 29.07.2012
I will try right now
EDIT: Nice ideea
) thx