Skip to content

Commit 14a5eaf

Browse files
committed
Merge branch 'master' of https://github.com/imring/SF.lua
2 parents aea099a + dec6c2a commit 14a5eaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SFlua/037-r1/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ function sampAddChatMessageEx(_type, text, prefix, textColor, prefixColor)
14991499
assert(isSampAvailable(), 'SA-MP is not available.')
15001500
local char = ffi.cast('PCSTR', tostring(text))
15011501
local charPrefix = prefix and ffi.cast('PCSTR', tostring(prefix))
1502-
samp_C.addMessage(samp_C.chat, _type, char, charPrefix, textColor, prefixColor)
1502+
samp_C.addMessage(samp_C.chat, _type, char, charPrefix, tonumber(textColor) or -1, tonumber(prefixColor) or -1)
15031503
end
15041504

15051505
-- stPickupPool
@@ -1528,4 +1528,4 @@ function sampGetDialogButtons()
15281528
local b1p = samp_C.getElementSturct(dialog, 20, 0) + 0x4D
15291529
local b2p = samp_C.getElementSturct(dialog, 21, 0) + 0x4D
15301530
return ffi.string(b1p), ffi.string(b2p)
1531-
end
1531+
end

0 commit comments

Comments
 (0)