[[[[[[Helpppp]]]]]]
#1

I get this error code
Код:
C:\Documents and Settings\Chris\My Documents\HayZaticDogFight\filterscripts\a51g.pwn(150) : error 030: compound statement not closed at the end of file (started at line 128)
This Is The "Messed Up script"

Код:
if(strcmp("/gate", cmdtext, true, 8) == 0)
	{
	    if(PlayerToPoint(25, playerid, 281.667694, 1821.519043, 16.701317))
  {
	     SendClientMessage(playerid, COLOR_LIGHTGREEN, "Type /gate to enter or leave base");
	        {
	            if(a51_liftstatus == 1)
	            {
	                MoveObject(a51_lift1, 281.667694, 1821.519043, 23.451214, 4);
	                MoveObject(a51_lift2, 290.248383, 1821.519043, 23.451214, 4);
	                MoveObject(a51_lift3, 275.712830, 1821.519043, 23.451214, 4);
	                MoveObject(a51_lift4, 296.168213, 1821.519043, 23.451214, 4);
	                SendClientMessage(playerid, COLOR_LIGHTGREEN, "*    Area51 Lift Going Up");
	                a51_liftstatus = 0;
				}
				else if(a51_liftstatus == 0)
				{
				    MoveObject(a51_lift1, 281.667694, 1821.519043, 16.701317, 4);
				    MoveObject(a51_lift2, 290.248383, 1821.519043, 16.701317, 4);
				    MoveObject(a51_lift3, 275.712830, 1821.519043, 16.701317, 4);
				    MoveObject(a51_lift4, 296.168213, 1821.519043, 16.701317, 4);
				    SendClientMessage(playerid, COLOR_LIGHTRED, "*  Area51 Lift Going Down");
				    a51_liftstatus = 1;
		}
		return 1;
Reply
#2

You forgot closing bracket "}" .
pawn Код:
if(strcmp("/gate", cmdtext, true, 8) == 0)
{
    if(PlayerToPoint(25, playerid, 281.667694, 1821.519043, 16.701317))
    {
         SendClientMessage(playerid, COLOR_LIGHTGREEN, "Type /gate to enter or leave base");
         {
            if(a51_liftstatus == 1)
            {
                MoveObject(a51_lift1, 281.667694, 1821.519043, 23.451214, 4);
                MoveObject(a51_lift2, 290.248383, 1821.519043, 23.451214, 4);
                MoveObject(a51_lift3, 275.712830, 1821.519043, 23.451214, 4);
                MoveObject(a51_lift4, 296.168213, 1821.519043, 23.451214, 4);
                SendClientMessage(playerid, COLOR_LIGHTGREEN, "*    Area51 Lift Going Up");
                a51_liftstatus = 0;
            }
            else if(a51_liftstatus == 0)
            {
                MoveObject(a51_lift1, 281.667694, 1821.519043, 16.701317, 4);
                MoveObject(a51_lift2, 290.248383, 1821.519043, 16.701317, 4);
                MoveObject(a51_lift3, 275.712830, 1821.519043, 16.701317, 4);
                MoveObject(a51_lift4, 296.168213, 1821.519043, 16.701317, 4);
                SendClientMessage(playerid, COLOR_LIGHTRED, "*  Area51 Lift Going Down");
                a51_liftstatus = 1;
            }
        }
    }
    return 1;
}
Reply
#3

pawn Код:
if(strcmp("/gate", cmdtext, true, 8) == 0)
{
    if(PlayerToPoint(25, playerid, 281.667694, 1821.519043, 16.701317))
    {
         SendClientMessage(playerid, COLOR_LIGHTGREEN, "Type /gate to enter or leave base");
         {// <== ???
            if(a51_liftstatus == 1)
            {
                MoveObject(a51_lift1, 281.667694, 1821.519043, 23.451214, 4);
                MoveObject(a51_lift2, 290.248383, 1821.519043, 23.451214, 4);
                MoveObject(a51_lift3, 275.712830, 1821.519043, 23.451214, 4);
                MoveObject(a51_lift4, 296.168213, 1821.519043, 23.451214, 4);
                SendClientMessage(playerid, COLOR_LIGHTGREEN, "*    Area51 Lift Going Up");
                a51_liftstatus = 0;
            }
            else if(a51_liftstatus == 0)
            {
                MoveObject(a51_lift1, 281.667694, 1821.519043, 16.701317, 4);
                MoveObject(a51_lift2, 290.248383, 1821.519043, 16.701317, 4);
                MoveObject(a51_lift3, 275.712830, 1821.519043, 16.701317, 4);
                MoveObject(a51_lift4, 296.168213, 1821.519043, 16.701317, 4);
                SendClientMessage(playerid, COLOR_LIGHTRED, "*  Area51 Lift Going Down");
                a51_liftstatus = 1;
            }
        }
    }
    return 1;
}
Reply
#4

Ups. Didn't notice that.
Yeah that's a useless bracket, remove it.
Reply
#5

Please try to put a more descriptive title, It's very annoying and won't help us, second time with an unprofessional title.
Yes, delete the bracket.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)