27.05.2016, 20:04
Код:
C:\Users\Marius\Desktop\GM\gamemodes\GM.pwn(448) : warning 217: loose indentation C:\Users\Marius\Desktop\GM\gamemodes\GM.pwn(463) : error 030: compound statement not closed at the end of file (started at line 400) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
CMD:admins(playerid, params[]) { new sendername[MAX_PLAYER_NAME], string[128]; if(IsPlayerConnected(playerid)) { SCM(pid, -1, "{FF6600}Online {FFFFFF}Admins"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Player[i][pAdmin] == 1338) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "Server Founder: {FF0000}%s", sendername); SCM(pid, COLOR_WHITE, string); } if(Player[i][pAdmin] == 1337) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "Server Manager: {A31818}%s", sendername); SCM(pid, COLOR_WHITE, string); } if(Player[i][pAdmin] == 5) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "Server Mapper: {0080FF}%s", sendername); SCM(pid, COLOR_WHITE, string); } if(Player[i][pAdmin] == 4) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "Leader Coordinator: {6633CC}%s", sendername); SCM(pid, COLOR_WHITE, string); } if(Player[i][pAdmin] == 3) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "Server Guardian: {A173FF}%s", sendername); SCM(pid, COLOR_WHITE, string); } if(Player[i][pAdmin] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "Server Moderator: {5CFEADFF}%s", sendername); SCM(pid, COLOR_WHITE, string); } if(Player[i][pAdmin] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "Trial Admin: {94FEC9FF}%s", sendername); } else { if(!IsPlayerConnected(i)) { format(string, sizeof(string), "{08FC9A}There are no admins online."); SCM(pid, -1, string); } return 1; } } }