irc cmds
#1

well i get these errors in this script:
Quote:

IRCCMD:ban(botid, channel[], user[], params[]) // supports banning by partial nickname
{
if (IRC_IsOp(botid,ADMIN_CHANNEL, user)) return false;
new playername[MAX_PLAYERS];
new strname[25];
new strmessage[150];
for (new a=0; a<=MAX_PLAYERS; a++)
{
if (IsPlayerConnected(a))
{
GetPlayerName(a,strname,16);
new space = (strfind(params, strname));
if (space != -1)
{

format(strmessage, sizeof(strmessage), "**(ADMIN BAN)** \2;%s(%d)\2;", strname,a);
SendClientMessageToAll(0xFF7F50AA, strmessage);
IRC_GroupSay(gGroupID, IRC_CHANNEL,strmessage);
if(udb_Exists(playername) && PLAYERLIST_authed[a]) {
dUserSetINT(playername(a)).("nameban",1);
}
Banning[a] = 1;
SetTimer("BanPlayer",700,0);
return true;
}
}
}
format(strmessage, sizeof(strmessage), "2*** \2;%s\2; is not found on the server.", params);
IRC_GroupSay(gGroupID, ADMIN_CHANNEL,strmessage);
return true;
}

the problems
Quote:

C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_4.pwn(614) : error 012: invalid function call, not a valid address
C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_4.pwn(614) : warning 215: expression has no effect
C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_4.pwn(614) : error 001: expected token: ";", but found ")"
C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_4.pwn(614) : error 029: invalid expression, assumed zero
C:\Users\Fam Selten\Documents\Mark\sa mp server\gamemodes\World_War_4.pwn(614) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.

it has to do with that file "nameban". that is the line with the errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)