Help [AHK] addMessageToChatWindow

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
Hello,
i wanted to create a function, to color the timestamp.
every time i try to recreate this function i get a crash.. :bawww:

you may got a solution? :yesyes:


addMessageToChatWindow(ccolor, wText) {
    wText := "" wText

    if(!checkHandles())
        return false
   
    dwFunc := dwSAMP + 0x64010
    dwChatInfo := readDWORD(hGTA, dwSAMP + 0x21A0E4)
   
    if(ErrorLevel) {
        ErrorLevel := ERROR_READ_MEMORY
        return false
    }
   
    callwithparams(hGTA, dwFunc,  [  ["p", dwChatInfo ] , ["i", 4] , ["s", wText], ["i", 0], ["i", 0], ["i", ccolor]] , true)
   
    ErrorLevel := ERROR_OK
    return true
}
 
Top