16.12.2010, 20:30
(
Последний раз редактировалось Nibblet; 16.12.2010 в 21:07.
)
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:
The Variables dont really care, as I tested it without them and It doesnt work either...
This is my Message WITHOUT Color Embedding:
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.
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);
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);
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.