Hello !!
i have a Problem with my own Plugin!! i got this error (B3 is running under Windows Vista)
100101 15:28:06 CRITICAL Error loading plugin: unexpected indent (poweradmin.py, line 171)
Traceback (most recent call last):
File "C:\Python26\lib\site-packages\b3\parser.py", line 437, in loadPlugins
pluginModule = self.pluginImport(p)
File "C:\Python26\lib\site-packages\b3\parser.py", line 493, in pluginImport
mod = __import__(module)
File "C:\Python26\lib\site-packages\b3\plugins\poweradmin.py", line 171
def cmd_palimit(self, data, client, cmd=None):
^
IndentationError: unexpected indent
And this is my Plugin Function!
def cmd_timelimit(self, data, client, cmd=None):
"""\
<message> - Set the Time of the Game to a Value
"""
if not data:
client.message('^7Invalid or missing data, try !help timelimit')
return False
else:
# are we still here? Let's write it to console
self.console.setCvar( 'b3_time','%s' % data )
return True
And This is my serverside mod!
_b3_time()
{
time = getcvar("b3_time");
setcvar("b3_time", "");
iprintlnbold("Time was edited by an admin");
setcvar("scr_zom_timelimit", time);
}
Please i need some help!!