Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: outputchatbox.
1. Pobieranie nicku, wklejanie do outputChatBox.
Mam taki kodzik, jest on ?le, wywala Db, dok?adnie chodzi o t? linijk? :

Kod:

local nameNick = getPlayerName(getLocalPlayer())


A ca?y kod to:

Kod:

function sayMessage(source, command, ...)
local nameNick = getPlayerName(getLocalPlayer())
theText = {...}
text = table.concat(theText, " ")
playerAcc = getPlayerAccount(source)
if isObjectInACLGroup("user."..getAccountName(playerAcc), aclGetGroup("Fcnews")) then
if theText then
if not (text == "") then
outputChatBox("#00FF00Reporter"..nameNick..": #58ACFA"..text, getRootElement(), 0,153,255, true)
else
outputChatBox("00FF00-> #FF0000Type the Message",source, 0,153,255,true)
end
end
end
end
addCommandHandler("fcn", sayMessage)