Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[SOLVED] Simple Question (In-Game Messages)


Tyr
 Share

Recommended Posts

Hi all :)

I found it always so annoying that when peoples make VERY long sentences in the game that the chat bubbles where "bugged" (not really but ya) and that the text took in a huge place on the map…

Suddenly i had a "perfect" idea to fix this... when the text is longer then 17 chars, delete ALL the chars after the 17 and add "..." (of course only on the map, not in the textbox)

so what i basically did was this

```
Sub MapMsg2(ByVal MapNum As Long, ByVal Msg As String, ByVal Index As Long)
    If Len(Msg) > 17 Then

```        WHAT NOW
```
    End If
    Call SendDataToMap(MapNum, "MAPMSG2" & SEP_CHAR & Msg & SEP_CHAR & Index & END_CHAR)
End Sub

```
so when the text is longer then 17 then it should happen, but i have no idea to do it. I know how to add the "…" **but i don't know how to remove all the characters BEHIND 17 and to keep the rest**

you guys got any idea? would be very helpful! thx.

- Tyr
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...