22.02.2009, 17:03
I've got two errors when compiling this, im now sure why...
Could someone tell me what the problem is?
Could someone tell me what the problem is?
pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
if(pm == true)
{
new ircLevel[4];
new userslist[128];
new pmstr[128];
ircGetUserList(RandomBot(), ECHOCHAN, userslist, sizeof(userslist));
new spaces = CountSpaces(userslist);
new users[spaces][30]; // LINE WITH ERRORS (1163)
ircGetUserLevel(RandomBot(), ECHOCHAN, userslist, ircLevel);
if(!strcmp(ircLevel, "~", true,1) || !strcmp(ircLevel, "&", true,1) || !strcmp(ircLevel, "@", true,1) || !strcmp(ircLevel, "%", true,1)) return true;
format(pmstr,128,"5PM from %s (ID:%d) to %s (ID:%d):12 %s",PlayerName(playerid),playerid,PlayerName(recieverid),recieverid,text);
explain(pmstr);
}
return true;
}
Код:
(1163) : error 008: must be a constant expression; assumed zero (1163) : error 036: empty statement