05.07.2016, 21:33
Hi all,
I'm scripting to make OnPlayerText go onto 2 lines. My code is below:
However, rather than str2 dipsplaying the second half of the message, it just redisplays the first part of the message. E.g.:
Can anyone see my error?
Thanks
I'm scripting to make OnPlayerText go onto 2 lines. My code is below:
Code:
new str1[144], str2[144], max_str = 110; strmid(str1, text, 0, max_str); strmid(str2, text, max_str, strlen(text)); format(str1, sizeof(str1), "{%s}%s: {%s}%s...",EMBED_WHITE, fullName(playerid, false), EMBED_WHITESMOKE, text); format(str2, sizeof(str2), "{%s}%s: {%s}...%s",EMBED_WHITE, fullName(playerid, false), EMBED_WHITESMOKE, text); ProxDetector(15.0, playerid, str1); ProxDetector(15.0, playerid, str2);
Code:
[22:22:07] {FFFFFF}Joe Bloggs: {F5F5FF}I am simply testing this script. It's supposed to put things on 2 lines. However, whether that actually happens [22:22:07] {FFFFFF}Joe Bloggs: {F5F5FF}...I am simply testing this script. It's supposed to put things on 2 lines. However, whether that actually happe
Thanks