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; }
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)
if(BlockInfo[playerid][i] == 1)
public OnPlayerText(playerid,text[])
{
for (new i = 0; i < GetMaxPlayers(); i++) {
if(new BlockInfo[i] == 1) return 0;
}
return 1;
}
Originally Posted by ۞●•λвнiиаv•●۞
do u mean muting someone? (MUTE/UNMUTE) ??
If Yes, then i can help you, |
public OnPlayerText(playerid,text[]) { new i; for(i=0;i<=MAX_PLAYERS;i++){ if(BlockInfo[i][playerid]) return 0; } return 1; }