03.07.2009, 11:47
new BlockInfo[MAX_PLAYERS][MAX_PLAYERS];
why is'nt this working?
the errors are:
On the line:
Код:
public OnPlayerText(playerid,text[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(new BlockInfo[playerid][i] == 1)
{
}
}
return 0;
}
return 1;
}
Код:
if(strcmp(cmd, "/BLOCKPLAYER", true)== 0) // Block / UnBlock some PLAYER!.
{
tmp = strtok(cmdtext, idx);
new otherplayer = strval(tmp);
new opname[MAX_PLAYER_NAME], string[256];
GetPlayerName(otherplayer, opname, sizeof (opname));
if(!strlen(tmp)) return SendClientMessage(playerid, WHITEBLUE, "USE: /BlockPlayer [playerid]");
BlockInfo[playerid][otherplayer] = 1;
format(string, sizeof(string), ".%s зсоъ аъ ддегтеъ щм дщзчп", opname);
SendClientMessage(playerid, WHITEBLUE, string);
return 1;
}
the errors are:
Код:
E:\PROGRA~1\GTASAN~1\GAMEMO~1\Untitled.pwn(564) : error 029: invalid expression, assumed zero E:\PROGRA~1\GTASAN~1\GAMEMO~1\Untitled.pwn(564) : warning 215: expression has no effect E:\PROGRA~1\GTASAN~1\GAMEMO~1\Untitled.pwn(564) : error 001: expected token: ";", but found ")" E:\PROGRA~1\GTASAN~1\GAMEMO~1\Untitled.pwn(564) : error 029: invalid expression, assumed zero E:\PROGRA~1\GTASAN~1\GAMEMO~1\Untitled.pwn(564) : fatal error 107: too many error messages on one line
Код:
if(new BlockInfo[playerid][i] == 1)

