Forums Index >> Modding >> EXTREMELY WEIRD Script Error



Page : <1> :


Ok, since this'll be a long post, I'll get to the point.
Here are the things I added:

 

                                        
function lkick(%sender,%msg)
{
%match = matchClientName(%msg);
%client = firstword(%match);
%status_message = restwords(%match);
if(%client == -1)
{
bottomprint(%sender,%status_message,4,4);
return;
}

if(isObject(%client.ai))
{
centerprint(%sender,"You cannot kick Bots",4,4);
return;
}
%client.delete("I'm very sorry, but I had to turn off my PC before you could finish dloading. Please try again another time.");
}
function bkick(%sender,%msg)
{
%match = matchClientName(%msg);
%client = firstword(%match);
%status_message = restwords(%match);
if(%client == -1)
{
bottomprint(%sender,%status_message,4,4);
return;
}

if(isObject(%client.ai))
{
centerprint(%sender,"You cannot kick Bots",4,4);
return;
}
%client.delete("YOU'VE FINISHED THE DLOAD!!! I had to turn off my PC. Sorry, but please come another time to see my mod. You won't have to d/l again!!");
}
>>>>>MORE FUNCTIONS HERE<<<<<
>>>>>MORE ADMINCODES HERE<<<<<
else if(%code $= "/lk")
{
if(IsDictator(%sender,"You're not a Dictator"))
lkick(%sender,%msg);
return;
}
else if(%code $= "/bk")
{
if(IsDictator(%sender,"You're not a Dictator"))
bkick(%sender,%msg);
return;
}

else
{centerprint(%sender,%code SPC "is not a code",4,4);
return;
}
}

 

As far as I know, the syntax is perfect.
This is the error I get in the console:

 

                                        
Compiling game/server/Admin Script/AdminCodes.cs...
game/server/Admin Script/AdminCodes.cs Line: 1610 - Syntax error.
>>> Advanced script error report. Line 3219.
>>> Some error context, with ## on sides of error halt:
}
else if(%code $="/lk")
{
if(IsDictator(%sender,##"##You're not a Dictator"))
lkick(%sender,%msg);
return;
>>> Error report complete.
Executing game/server/Admin Script/AdminCodes.cs.
game/server/Admin Script/AdminCodes.cs Line: 1610 - Syntax error.
>>> Advanced script error report. Line 3219.
>>> Some error context, with ## on sides of error halt:
}
else if(%code $="/lk")
{
if(IsDictator(%sender,##"##You're not a Dictator"))
lkick(%sender,%msg);
return;
>>> Error report complete.

 

Could someone PLEASE help me with this? :'( :'( :'( :'(

 

Last edited: Thursday, December 15, 2005 at 11:01:55 AM

Thursday, December 15, 2005 at 4:24:24 AM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald