Why do new lines do this sometimes? (~n~) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why do new lines do this sometimes? (~n~) (
/showthread.php?tid=244050)
Why do new lines do this sometimes? (~n~) -
grand.Theft.Otto - 25.03.2011
I have an /alert command for admins which overviews the server info for the players, I use Game Text Style 1. Usually it should show up from the top of the screen but I did ~n~ for new line, 2 times, so it could be visible on the screen (the default blocks some of it because of the chat)
As you can see, above of the info are 2 vertical lines because I did ~n~~n~ in my gametext line. Is it because of the order I put it in my code or is it a SA-MP bug?
Here is the line:
pawn Код:
GameTextForAll("~b~~b~~n~~n~~b~~h~las venturas:true crime~n~~y~version 7.1 ~n~~p~general info:~r~~n~/cmds /rules~n~~y~99.236.122.114:7777",10000,6);
In the code line, is it because I have ~n~ and ~b~ unorganized? Should I place ~b~ before the start of the words las venturas or should I put ~n~ before it?
There is also a red vertical line beside General Info: as you can see.
Anyone know how to fix it?
Re: Why do new lines do this sometimes? (~n~) -
Skylar Paul - 26.03.2011
Try doing the new line and THEN applying the color.
Re: Why do new lines do this sometimes? (~n~) -
ToPhrESH - 26.03.2011
Same thing in my script, I added two
Beside each other and a vertical line appears. Try deleting one of the ~n~ and see if there is one instead of two. Then you know it is because of using the ~n~.
Re: Why do new lines do this sometimes? (~n~) -
grand.Theft.Otto - 26.03.2011
Those answers still don't work.
Any other solutions?