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