kfirprods / SAMP-API

A C# written API to GTA:SA and SA:MP (using memory injection)
MIT License
7 stars 2 forks source link

AddMessageToChat shows leftover characters from earlier messages #1

Closed kfirprods closed 5 years ago

kfirprods commented 5 years ago

If you use it twice and provide a shorter message the 2nd time around, the characters in positions SECOND_STRING_LENGTH to FIRST_STRING_LENGTH are still the ones that the first message had assigned.

Best move is to clean up before showing a message