Help about few errors, please...
#1

When I am trying to compile my followed script, it suddenly appears to give me an error, an error 030.
I tried anything, I don't know if I am loosing brackets anywhere there.

Code of the error:

Код:
D:\GTA San Andreas\pawno\vo.pwn.pwn(5633) : error 030: compound statement not closed at the end of file (started at line 650)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
The Code of the Script:
Код:
public LoginCount(playerid)
{
	#if LOGIN_COUNT_ENABLED
	new string[256], string2[256], playrname[MAX_PLAYER_NAME], year, month, day;
	if(PlayerInfo[playerid][pAdmin] > 0) return 0;
	if(gPlayerLogged[playerid] != 1)
	{
	    SendClientMessage(playerid, COLOR_WHITE, "\n");
	    SendClientMessage(playerid, COLOR_WHITE, "\n");
	    SendClientMessage(playerid, COLOR_WHITE, "\n");
	    SendClientMessage(playerid, COLOR_WHITE, "\n");
	    SendClientMessage(playerid, COLOR_WHITE, "\n");
	    GetPlayerName(playerid, playrname, sizeof(playrname));
		getdate(year, month, day);
		format(string2, sizeof(string2), "%s has been kicked by the Server . [Reason: Failure to log in after %d seconds (%d-%d-%d)]", playrname, LOGIN_COUNT_TIME, month, day, year);
		KickLog(string);
	    format(string, sizeof(string), "You have been kicked by the Server. [Reason Failure to log in after %d seconds].", LOGIN_COUNT_TIME);
	    SendClientMessage(playerid, COLOR_RED, string);
		Kick(playerid);
	}
	return 1;
	#endif
}
stock SendRaw(senderid, const str[])
{
	CallRemoteFunction("OnPlayerCommandText","is",senderid,str);
}
#endif

// War Admin-Mode Script©
Please help me, thanks.
Reply
#2

Read the error. You should be able to fix it with just that. >.<
Reply
#3

#endif is the error
Reply
#4

So #endif is the problem, or the solution ? honestly I know what I am talking about but really.. I am trying some good weeks to solve this problem, and strangely, I can't, it's confusing me.
Can you head me to the exact lines to close the brackets? or the #endif ?
Reply
#5

Why do you have two #endif's when you only have one #if ?
Reply
#6

Because if I would delete the last #endif, it would decrease an one error for me.
Reply
#7

Can you help me please ?...
Reply
#8

Someone, please ?
Reply
#9

you have forgottet to return ....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)