[Possible Bug]Color Embedding -
Nibblet - 16.12.2010
Today i was working on my new gamemode with SA:MP 0.3c
Im using ALOT of color embedding (nice function, really thanks for that one kalcor).
But now i found a problem.
When having a Long string, and Using alot of color embedding it Wont display the message for some reason, if i'd add more numbers or letters whatever behind that last 1, it wont show the message, it does perform the actions after the message but it just wont display the message.
This is my Message WITH Color Embedding:
The Code:
Код:
format(string, sizeof(string), "{AA00FF}[ADMIN]: {DA0000}%s {FFFFFF}was banned by admin {AA00FF}%s{FFFFFF} ({DA0000}Reason: {FFFFFF}%s)", giveplayer, sendername, (result));
SendClientMessageToAll(0xFFFFFFFF, string);
The Variables dont really care, as I tested it without them and It doesnt work either...
This is my Message WITHOUT Color Embedding:
Код:
format(string, sizeof(string), "[ADMIN]: %s was banned by admin %s (Reason: %s)", giveplayer, sendername, (result));
SendClientMessageToAll(0xFFFFFFFF, string);
I think its the Color Embedding that is keeping the message short, because without the color embedding its completely fine, and it works.
And also when using it Only with a SendClientMessage (just filled in the normal values i used), It gives the same Outcome, with Color Embedding it Stops responding after a X characters.
I also tried increasing String variables but that didnt help either.
Re: [Possible Bug]Color Embedding -
leong124 - 17.12.2010
Max I/O is 128.
Including the colour codes(8 per colour).
Re: [Possible Bug]Color Embedding -
Nibblet - 17.12.2010
Then it should be increased, The color Embedding is a Great function but if used on thoose Big strings they get messed up with the Text I/O Limit then.
Re: [Possible Bug]Color Embedding -
[MWR]Blood - 17.12.2010
I don't think you really need more characters for a ban reason.
Re: [Possible Bug]Color Embedding -
Nibblet - 17.12.2010
Well its not Only for a ban Reason, its for like every reason.
As im trying to keep the Color embedding in it, But since that adds up extra cells it doesnt want to display when i go over it. And i also got it On /warn with a reason
which is even Longer because it would say "[ADMIN]: Tashla_Jameson has been Warned by Admin Tashla_Jameson (#/3) (Reason: [reason here])"
And that Wouldn't even display even if i didnt add a reason...
And i dont get the Point in Color Embedding adding up to the string length and Cells as they aren't showed in the server. Well maybe i get the point but its just annoying that i can't use the color embedding properly
Re: [Possible Bug]Color Embedding -
leong124 - 17.12.2010
Why don't they show in server?
The color codes acts like other string characters so that they takes up 8 cells for each color.
IMO the 128 limit will not be increased, though you may be right.
BTW, having a better and suitable use of color embedding is a better idea,
or else someone will claim that cell length is not enough because they send "rainbow" messages.
Re: [Possible Bug]Color Embedding -
Rac3r - 17.12.2010
Too much colour changing in a line does look rubbish IMO.
I've toned down the new colours a bit, a few of our admins think the colour upgrade is good, but if used like a 'rainbow', it just makes the reading a bit more of a task.
Yes, it's good to highlight words, but don't over do it.
Re: [Possible Bug]Color Embedding -
leong124 - 17.12.2010
Quote:
Originally Posted by Rac3r
Too much colour changing in a line does look rubbish IMO.
I've toned down the new colours a bit, a few of our admins think the colour upgrade is good, but if used like a 'rainbow', it just makes the reading a bit more of a task.
Yes, it's good to highlight words, but don't over do it.
|
What you say simply sums up what I say.
Suitable use of colors.
Re: [Possible Bug]Color Embedding -
Nibblet - 17.12.2010
Oh well, I guess that i'll have to Use less color codes then, So not a bug then, Still thanks for Helping and Advising all