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

How to Print?

Antrhaxcs

New Member
Joined
Aug 8, 2007
Messages
247
Reaction score
0
Location
Venezuela
Hello I have made a lot of test for an script
and can't figure out how to make this work can you Tala~help me ?

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)		npcHandler:onCreatureAppear(cid)		end
function onCreatureDisappear(cid)	npcHandler:onCreatureDisappear(cid)		end
function onCreatureSay(cid, type, msg)	print("test")end
function onThink()			npcHandler:onThink()				end

npcHandler:addModule(FocusModule:new())

function onCreatureSay(cid, type, msg) print("test")end : this suposed to display the text "Test" in the console of TFS but don't display nothing.

P.D: I'm using TFS rev 218 Version GUI.
 
print("text") is only supported in the console version for now, for debugPrinting in GUI you use debugPrint("text"), also remember to add a space between x(parameter) and end, so instead of:
print("text")end
you use:
print("text") end

If you don't you might get some/many errors.
 
Back
Top