29.04.2010, 18:29
the problem is that you forgot a } at the end of the file
theese other warnings are because you made everithing in a single row:
example:
it should look like this:
theese other warnings are because you made everithing in a single row:
example:
Код:
if(strcmp(cmdtext,"/aclearchat",true)==0) { if(adminlevel[playerid] == 7) { GetPlayerName(playerid, playername, sizeof(playername)); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); format(string,sizeof(string),"Admin %s has cleared the chat", playername); SendClientMessageToAll(COLOR_GREEN, string); } return 1; }
Код:
if(strcmp(cmdtext,"/aclearchat",true)==0) { if(adminlevel[playerid] == 7) { GetPlayerName(playerid, playername, sizeof(playername)); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); SendClientMessageToAll(COLOR_GREY," "); format(string,sizeof(string),"Admin %s has cleared the chat", playername); SendClientMessageToAll(COLOR_GREEN, string); } return 1; }