Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Support [Server] Colour Embedding Issue

 
  • 0 Vote(s) - 0 Average
Server Colour Embedding Issue
Torque
Offline

Burgershot Member
Posts: 49
Threads: 21
Joined: Jul 2020
Reputation: 1
Location: UK
#1
2021-01-21, 11:14 PM
It seems that there's a bug with colour embedding, whether it be dialogs or chat text.

It seems the colour is "leaking" into the next word in which a colour has already been set for.

[Image: unknown.png]
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#2
2021-01-22, 12:19 AM
Huh? Show the code please..colors are kept after \n fyi
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
Torque
Offline

Burgershot Member
Posts: 49
Threads: 21
Joined: Jul 2020
Reputation: 1
Location: UK
#3
2021-01-22, 02:43 AM
Code:
CMD:colortest(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_COLORTEST, DIALOG_STYLE_MSGBOX, "{DCC176}Community - Accepting the rules", "{FFFFFF}When registering this account on the server, you need to\nconfirm that you have read the rules of the community.\nCheck them out on this link: {4682b4}www.adress.com/rules", "confirm", "back");
}


The multiple colours was just a test. This script here, the w (At the start of www.) is white, instead of steel blue as defined.
Markski
Offline

Burgershot Clerk

Posts: 127
Threads: 6
Joined: Apr 2019
Reputation: 5
Location: La Plata, Argentina
#4
2021-01-22, 08:40 PM
Weird. Try putting the colour embedding before the space and see if that "fixes" it
Website
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode