SA-MP Forums Archive
Square Brackets Problem - 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: Square Brackets Problem (/showthread.php?tid=454271)



Square Brackets Problem - RoBy41 - 28.07.2013

Hello, I have a problem with the square brackets. So I'm using a GameText which has [ and ], example: [GSF], but IG the GameText shows a star instead of [ and ], I know it's normal, but is there any way to avoid getting the star and use [ ] ? I don't want to use ( and ), etc.


Re: Square Brackets Problem - -Prodigy- - 28.07.2013

Have you tried different gametext types? If you get star on all of them, then it's no possible unless you use ( )


Re: Square Brackets Problem - RoBy41 - 28.07.2013

Actually, I saw on a server it works with [ and ]. They use [GSF] aswell.


Re: Square Brackets Problem - Necip - 28.07.2013

Show me that [GSF] line which creates the GameText

Quote:

] displays a * symbol (Only in text styles 3, 4 and 5)




Re: Square Brackets Problem - -Prodigy- - 28.07.2013

Are you sure they aren't textdraws? Using () kind of appears to be [ ] in gamtexts


Re: Square Brackets Problem - iggy1 - 28.07.2013

From the wiki:

Quote:

] displays a * symbol (Only in text styles 3, 4 and 5)

So it might only work with styles 0, 1 and 2. (not tested though so don't know if it will work on any).


Re: Square Brackets Problem - RoBy41 - 28.07.2013

I'm using the same style as that servers does. (I only cropped the GameText, and yes, it IS a GameText)
Pic:



And line:
Код:
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~r~Locked for [GSF]Chains.", 5500,5);



Re: Square Brackets Problem - park4bmx - 28.07.2013

textdraw


Re: Square Brackets Problem - iggy1 - 28.07.2013

I think it also displays a star on textdraws (wanted star).

EDIT: ^^ That could be either. Does look like gametext though. Did you try asking a scripter on the server?


Re: Square Brackets Problem - RoBy41 - 28.07.2013

Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
Are you sure they aren't textdraws? Using () kind of appears to be [ ] in gamtexts
Thanks for the help. Tested it right now, it shows [ ] instead of ( ), +REP, this problem was really annoying.

Anyways, thank you all for your help.

SOLVED.