• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem z doPlayerSendChannelMessage

zabka229

New Member
Joined
Dec 30, 2009
Messages
147
Reaction score
0
Witam mam problem z wyżej wymienioną funkcją.
Code:
	doPlayerOpenChannel(cid, 10)
    doPlayerSendChannelMessage(cid, cid, 'test.', TALKTYPE_CHANNEL_O, 10)
Channel się otwiera, ale nie wysyła wiadomości, z kolei jeśli zamienie TALKTYPE_CHANNEL na np: MESSAGE_STATUS_CONSOLE_RED dostaje debuga.
 
doPlayerSendChannelMessage(cid, cid, 'test.', TALKTYPE_CHANNEL_O, 10)

po co są 2 cidy w jednej funkcji bo nie rozumiem?
 
Drugi cid to autor, równie dobrze mogę wpisać tam 'Channel test' - które też nie zadziała.
 
ale drugi cid ma byc stringiem
addEvent(valid(doPlayerSendChannelMessage), 150, cid, getCreatureName(cid), "test.", TALKTYPE_CHANNEL_O, 10)
 
-.-
addEvent(doPlayerSendChannelMessage, 150, cid, getCreatureName(cid), "test.", TALKTYPE_CHANNEL_O, 10)
 
LUA:
for _, pid in ipairs(getPlayersOnline()) do
        doPlayerOpenChannel(pid, 10)
	addEvent(doPlayerSendChannelMessage, 500, pid, "sn3ejk", "Wiadomosc do kanalu o numerze identyfikacyjnym 10", TALKTYPE_CHANNEL_O, 10)
end
 
do czego tu wgl jest addEvent? jak on chce od razu wysłać, a nie po X czasie?xd
 
Back
Top