question about logininfo.py

08/03/2012 05:54 kikusz#1
Hayas there...
I'm trying to make a simple function to test things out on metin by using this piece of code:

Quote:
import app
import chat

onPressKeyDict[app.DIK_F5] = lambda : mytestfunctiononhere()

testingitout = FALSE

def mytestfunctiononhere(self):
if testingitout == FALSE:
testingitout = TRUE
chat.AppendChat(chat.CHAT_TYPE_INFO, "testingitout: enabled")
else:
testingitout = FALSE
chat.AppendChat(chat.CHAT_TYPE_INFO, "testingitout: disabled")
But when I start metin I get an error
about indentation error...
I tried even with almost nothing and I still get the same error...
I have the following line on logininfo.py
"import lala"
which imports the lala.py script
Can anyone shed some light on this? thanks
08/03/2012 11:20 vıo#2
show me your .py code frpm the logininfo.py
08/03/2012 13:13 kikusz#3
i only have the "import lala" on there...
and lala.py has that code that I posted up there..

anyone?!?
10/12/2012 01:26 kikusz#4
can anyone help on this?!?!?
it's been a while and still no help...