06.04.2011, 07:26
when i define that all i have new 6 errors:
all are in this command:
Код:
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1758) : warning 217: loose indentation C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1767) : warning 217: loose indentation C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1767) : error 029: invalid expression, assumed zero C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1772) : error 029: invalid expression, assumed zero C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 029: invalid expression, assumed zero C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : warning 215: expression has no effect C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 029: invalid expression, assumed zero C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
Код:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Nisi se jos logirao !"); return 1; } if ((noooc) && PlayerInfo[playerid][pAdmin] < 1) { SendClientMessage(playerid, COLOR_GRAD2, " The OOC channel has been disabled by an Admin !"); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "You can't speak, you have been silenced !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/o)oc [ooc chat]"); return 1; } format(string, sizeof(string), "(( %s: %s ))", sendername, result); OOCOff(COLOR_OOC,string); printf("%s", string); } return 1; }