08.10.2009, 18:45
The Error :
And The Lines:
I tried for an hour to make the error, but in vain I did,can ye help me? Tanks
Код:
C:\Documents and Settings\Claudiu\Desktop\Chestii !\Pro-gaming by PuNaNi\filterscripts\Vama.pwn(157) : error 030: compound statement not closed at the end of file (started at line 131) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
//---------------------------------------------------------------------------------------------------- public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/members",true)==0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pLeader] != 0) teamnumber = PlayerInfo[playerid][pLeader]; else if (PlayerInfo[playerid][pMember] != 0) teamnumber = PlayerInfo[playerid][pMember]; else { SendClientMessage(playerid, COLOR_LIGHTRED, "You are not a member of a team!"); return 1; } SendClientMessage(playerid, COLOR_LIGHTRED, "* Members Online *"); for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), ""); if (PlayerInfo[i][pLeader] == teamnumber) format(string, sizeof(string), "%s ( LEADER )",sendername); else if (PlayerInfo[i][pMember] == teamnumber) format(string, sizeof(string), "%s - Rank : %d.",sendername, PlayerInfo[i][pRank]); if (strlen(string) > 1) SendClientMessage(playerid, 0xF5DEB3AA, string); } } } return 1; }