• 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!

doPlayerSendChannelMessage

Hakur

New Member
Joined
Feb 12, 2012
Messages
145
Reaction score
1
Witam, mam problem z funkcją doPlayerSendChannelMessage otóż gdy ją użyje w moim jednym skrypcie
Lua:
doPlayerSendChannelMessage(cid, TEST, " .. test.. ", MESSAGE_STATUS_CONSOLE_ORANGE, 9)
Wtedy buguje clienta a jeszcze gdy dam funkcje przed tym na otworzenie channelu to mam taki błąd
Lua:
doPlayerOpenChannel(cid, channelId)
PHP:
39: attempt to call global 'doPlayerOpenChannel' (a nil value)

Możecie mnie naprowadzić jak mam to zmienić żeby na channelu dla gracza pisało bez bugowania?
 
A no faktycznie, dopiero teraz spojrzałem a ten pierwszy błąd z wyjebanym clientem?
 
Co do tego błędu przydało by się więcej informacjii ale wygląda mi na niepoprawne dane:
{MESSAGE_STATUS_CONSOLE_ORANGE, 9}
 
doPlayerSendChannelMessage(cid, author, message, SpeakClasses, channel)
(cid, TEST, " .. test.. ", MESSAGE_STATUS_CONSOLE_ORANGE, 9)

Mnie sie zdaje że chyba wszystko dobrze ;/
 
PHP:
doPlayerSendChannelMessage(cid, 'TEST', test, MESSAGE_STATUS_CONSOLE_ORANGE, 9)
".. .." - trzeba usunąć, nie miałeś rozpoczętego stringu i zmienną mogłeś śmiało wrzucać i autora wrzucić w string trzeba, stestuj. ; )
 
Last edited:
Back
Top