[Include] GameTextDraws - Use your own colors for GameTexts!
#21

Working Lol I forgot that _
Reply
#22

pawn Код:
GTIsShown[playerid][0] = 0;
GTIsShown[playerid][1] = 0;
GTIsShown[playerid][2] = 0;
GTIsShown[playerid][3] = 0;
GTIsShown[playerid][4] = 0;
GTIsShown[playerid][5] = 0;
GTIsShown[playerid][6] = 0;
GTIsShown[playerid][7] = 0;
GTIsShown[playerid][8] = 0;
GTIsShown[playerid][9] = 0;
GTIsShown[playerid][10] = 0;
pawn Код:
for (new i; i < GAMETEXT_STYLES; i++) GTIsShown[playerid][i] = 0;
After this your code will look perfect imo.
Reply
#23

Quote:
Originally Posted by kvann
Посмотреть сообщение
pawn Код:
GTIsShown[playerid][0] = 0;
GTIsShown[playerid][1] = 0;
GTIsShown[playerid][2] = 0;
GTIsShown[playerid][3] = 0;
GTIsShown[playerid][4] = 0;
GTIsShown[playerid][5] = 0;
GTIsShown[playerid][6] = 0;
GTIsShown[playerid][7] = 0;
GTIsShown[playerid][8] = 0;
GTIsShown[playerid][9] = 0;
GTIsShown[playerid][10] = 0;
pawn Код:
for (new i; i < GAMETEXT_STYLES; i++) GTIsShown[playerid][i] = 0;
After this your code will look perfect imo.
Updated, just re-download.

https://github.com/iFarbod/GameTextF...ses/tag/v1.0.4
Reply
#24

Quote:
Originally Posted by ******
Посмотреть сообщение
You might be interested in this post from fixes.inc:

https://sampforum.blast.hk/showthread.php?pid=2903018#pid2903018

All the associated code for those additional types is here, to save you duplicating effort:

https://github.com/Y-Less/sa-mp-fixe...nc#L2659-L3082

That code creates both global and per-player TD for the 14 styles I listed.

I didn't think to add the message box one. May I suggest consistency in numbering? It doesn't make much sense to have vehicle names be style 7 in fixes.inc and style 8 here. Of course, there is no reason you should do, it would just be better IMHO.
I'm never used fixes.inc and i never know about that "GameTexts" is in fixes.inc as Textdraws. I Just maked my own include for my own use, but i decided to release it here. Since i saw someones need to use their own colors in GameTexts. Anyway, i obtained the colors from single-player with an ASI Plugin (Since i was single-player modder before SA-MP). And i designed the textdraws with Zamaroht's TD Designer. Anyway, this release is not going useful. I Think i must remove it OR ... . I Don't know.
Reply
#25

Quote:
Originally Posted by ******
Посмотреть сообщение
I didn't at all say remove it! I pointed you to existing code you could use to save you time, and suggested that you might want to maintain compatibility for everyone's sake. I know how long and hard replicating those styles is, since I've already done it, so why not try and save someone else the trouble?

Don't remove it - you already made it and if only one other person uses it, that's still good.
And about colors, i first used original gametext functions, then i taken a screenshot, after that, i picked the color using "Instant Eyedropper".
Reply
#26

Good Job Farbod +REP
Reply
#27

btw whats the format to use for it change the color for each text ?
Reply
#28

Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
btw whats the format to use for it change the color for each text ?
https://github.com/iFarbod/GameTextFix/wiki

Update: added GameTextForTeam_
Reply
#29

Quote:
Originally Posted by iFarbod
Посмотреть сообщение
https://github.com/iFarbod/GameTextFix/wiki

Update: added GameTextForTeam_
it just simple use there we can now use colors like this in textdraw ? {FF00FF} ?
Reply
#30

Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
it just simple use there we can now use colors like this in textdraw ? {FF00FF} ?
No, you can't embed colors in textdraws.
Reply
#31

Quote:
Originally Posted by iFarbod
Посмотреть сообщение
No, you can't embed colors in textdraws.
okay..
Reply
#32

iFarBod, i suggest you to post a full screenshot of the gametexts so that people knows where is it located at
Reply
#33

Good job.
Reply
#34

Thank yo'.
Reply
#35

BestInclude +rep
Reply
#36

Can anybody redownload it plz?
Reply
#37

Thanks for bumping this OstGot lol, This is really awesome.
Could anyone upload a download link please
Reply
#38

Link not working
Reply
#39

Guys, simply create a textdraw and done.
Reply
#40

The Link Is Not Found? Repair Your Link
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)