SA-MP Forums Archive
Help about few errors, please... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help about few errors, please... (/showthread.php?tid=329498)



Help about few errors, please... - Wooza - 28.03.2012

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.


Re: Help about few errors, please... - Joshb93 - 28.03.2012

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


Re: Help about few errors, please... - sjvt - 29.03.2012

#endif is the error


Re: Help about few errors, please... - Wooza - 29.03.2012

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 ?


Re: Help about few errors, please... - KreeDz - 29.03.2012

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


Re: Help about few errors, please... - Wooza - 29.03.2012

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


Re: Help about few errors, please... - Wooza - 30.03.2012

Can you help me please ?...


Re: Help about few errors, please... - Wooza - 02.04.2012

Someone, please ?


Re: Help about few errors, please... - Emil123 - 02.04.2012

you have forgottet to return ....