What Is That?
#1

Код:
C:\Documents and Settings\xxx\Desktop\gate.pwn(93) : error 030: compound statement not closed at the end of file (started at line 82)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
What Error Is That
Reply
#2

Never had this but maybe you forgot a bracket.
Reply
#3

Post your script, then we can help you
Reply
#4

Here It Is...

Код:
//==============================================================================
//=================================Gate System==================================
//==============================================================================

#include <a_samp>

new gate1;
new gate2;
new gate3;
new gate4;
new gate5;
new gate6;
new gate7;

public OnGameModeInit()
{
gate1 = CreateObject(980, 2107.968506, 1970.264893, 13.005812, 0.0000, 359.1406, 272.4236);//Gate C
gate2 = CreateObject(980, 2106.568604, 1864.260620, 12.977417, 0.0000, 0.0000, 261.2510);//Gate D
gate3 = CreateObject(985, 1916.884399, 1966.262695, 8.080259, 0.0000, 0.0000, 270.0000);//Parkla -1 (Gate 1)
gate4 = CreateObject(986, 1916.895142, 1974.203125, 8.080259, 0.0000, 0.0000, 270.0000);//Parkla -1 (Gate 2)
gate5 = CreateObject(985, 1857.275757, 1929.716553, 7.530259, 0.0000, 0.0000, 180.0000);//Parkla -2 (Gate 1)
gate6 = CreateObject(986, 1865.214111, 1929.744751, 7.563121, 0.0000, 0.0000, 180.0000);//Parkla -2 (Gate 2)
gate7 = CreateObject(980, 1968.869385, 1765.079224, 14.506590, 0.0000, 0.0000, 270.0000);//Parkla -3
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/opengate1",true)==0)
{
MoveObject(gate1,2107.968506,1982.014404,13.005812,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate1", true) == 0)//open gates
{
MoveObject(gate1,2107.968506, 1970.264893, 13.005812,2.00);//cordinates open gate
return 1;
}

{
if(strcmp(cmdtext,"/opengate2",true)==0)
{
MoveObject(gate2,2106.268604,1875.961548,12.977417,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate2", true) == 0)//open gates
{
MoveObject(gate2,2106.568604, 1864.260620, 12.977417,2.00);//cordinates open gate
return 1;

}
if(strcmp(cmdtext,"/opengate3",true)==0)
{
MoveObject(gate3,1916.895142,1980.130005,8.080259,2.00);//cordinates close gate
MoveObject(gate4,1916.884399,1959.160889,8.080259,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate3", true) == 0)//open gates
{
MoveObject(gate3,1916.884399, 1966.262695, 8.080259,2.00);//cordinates open gate
MoveObject(gate4,1916.895142, 1974.203125, 8.080259,2.00);//cordinates open gate
return 1;

}
if(strcmp(cmdtext,"/opengate4",true)==0)
{
MoveObject(gate5,1849.633657,1929.741577,7.530259,2.00);//cordinates close gate
MoveObject(gate6,1870.615723,1929.644653,7.563121,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate4", true) == 0)//open gates
{
MoveObject(gate5,1857.275757, 1929.716553, 7.530259,2.00);//cordinates open gate
MoveObject(gate6,1865.214111, 1929.744751, 7.563121,2.00);//cordinates open gate
return 1;
}

{
if(strcmp(cmdtext,"/opengate5",true)==0)
{
MoveObject(gate7,1968.544067,1776.606455,14.506590,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate5", true) == 0)//open gates
{
MoveObject(gate7,1968.869385, 1765.079224, 14.506590,2.00);//cordinates open gate
return 1;
}
And Error

Код:
C:\Documents and Settings\xxx\Desktop\gate.pwn(92) : error 030: compound statement not closed at the end of file (started at line 82)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

Please let us know what line 92 is, and use Identation next time, i cannot read any of that shit.
Reply
#6

Sigh wacko, again with the "I cant read that shit" lol.. I read it fine

There was 2 opening brackets alone. The errors tell you where they are, remove them! -> {

Also add this at the end of your script to close OnPlayerCommandText

Код:
return 0;
}
Or, use this:

pawn Код:
//==============================================================================
//=================================Gate System==================================
//==============================================================================

#include <a_samp>

new gate1;
new gate2;
new gate3;
new gate4;
new gate5;
new gate6;
new gate7;

public OnGameModeInit()
{
gate1 = CreateObject(980, 2107.968506, 1970.264893, 13.005812, 0.0000, 359.1406, 272.4236);//Gate C
gate2 = CreateObject(980, 2106.568604, 1864.260620, 12.977417, 0.0000, 0.0000, 261.2510);//Gate D
gate3 = CreateObject(985, 1916.884399, 1966.262695, 8.080259, 0.0000, 0.0000, 270.0000);//Parkla -1 (Gate 1)
gate4 = CreateObject(986, 1916.895142, 1974.203125, 8.080259, 0.0000, 0.0000, 270.0000);//Parkla -1 (Gate 2)
gate5 = CreateObject(985, 1857.275757, 1929.716553, 7.530259, 0.0000, 0.0000, 180.0000);//Parkla -2 (Gate 1)
gate6 = CreateObject(986, 1865.214111, 1929.744751, 7.563121, 0.0000, 0.0000, 180.0000);//Parkla -2 (Gate 2)
gate7 = CreateObject(980, 1968.869385, 1765.079224, 14.506590, 0.0000, 0.0000, 270.0000);//Parkla -3
return 1;
}

public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/opengate1",true)==0)
{
MoveObject(gate1,2107.968506,1982.014404,13.005812,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate1", true) == 0)//open gates
{
MoveObject(gate1,2107.968506, 1970.264893, 13.005812,2.00);//cordinates open gate
return 1;
}


if(strcmp(cmdtext,"/opengate2",true)==0)
{
MoveObject(gate2,2106.268604,1875.961548,12.977417,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate2", true) == 0)//open gates
{
MoveObject(gate2,2106.568604, 1864.260620, 12.977417,2.00);//cordinates open gate
return 1;

}
if(strcmp(cmdtext,"/opengate3",true)==0)
{
MoveObject(gate3,1916.895142,1980.130005,8.080259,2.00);//cordinates close gate
MoveObject(gate4,1916.884399,1959.160889,8.080259,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate3", true) == 0)//open gates
{
MoveObject(gate3,1916.884399, 1966.262695, 8.080259,2.00);//cordinates open gate
MoveObject(gate4,1916.895142, 1974.203125, 8.080259,2.00);//cordinates open gate
return 1;

}
if(strcmp(cmdtext,"/opengate4",true)==0)
{
MoveObject(gate5,1849.633657,1929.741577,7.530259,2.00);//cordinates close gate
MoveObject(gate6,1870.615723,1929.644653,7.563121,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate4", true) == 0)//open gates
{
MoveObject(gate5,1857.275757, 1929.716553, 7.530259,2.00);//cordinates open gate
MoveObject(gate6,1865.214111, 1929.744751, 7.563121,2.00);//cordinates open gate
return 1;
}


if(strcmp(cmdtext,"/opengate5",true)==0)
{
MoveObject(gate7,1968.544067,1776.606455,14.506590,2.00);//cordinates close gate
return 1;
}
if(strcmp(cmdtext, "/closegate5", true) == 0)//open gates
{
MoveObject(gate7,1968.869385, 1765.079224, 14.506590,2.00);//cordinates open gate
return 1;
}
return 0;
}
Reply
#7

Now I Upgraded My Code
and agin i dont undestand What Is Problem?

code is here

Код:
//==============================================================================
//=================================Gate System==================================
//==============================================================================

#include <a_samp>

new gate1;
new gate2;
new gate3;
new gate4;
new gate5;
new gate6;
new gate7;
new gate8;

#define COLOR_NICEBLUE 0x3C80C4FF
#define COLOR_YELLOW 0xEEDD11FF


public OnGameModeInit()
{
gate1 = CreateObject(980, 2107.968506, 1970.264893, 13.005812, 0.0000, 359.1406, 272.4236);//Gate C
gate2 = CreateObject(980, 2106.568604, 1864.260620, 12.977417, 0.0000, 0.0000, 261.2510);//Gate D
gate3 = CreateObject(985, 1916.884399, 1966.262695, 8.080259, 0.0000, 0.0000, 270.0000);//Parkla -1 (Gate 1)
gate4 = CreateObject(986, 1916.895142, 1974.203125, 8.080259, 0.0000, 0.0000, 270.0000);//Parkla -1 (Gate 2)
gate5 = CreateObject(985, 1857.275757, 1929.716553, 7.530259, 0.0000, 0.0000, 180.0000);//Parkla -2 (Gate 1)
gate6 = CreateObject(986, 1865.214111, 1929.744751, 7.563121, 0.0000, 0.0000, 180.0000);//Parkla -2 (Gate 2)
gate7 = CreateObject(980, 1968.869385, 1765.079224, 14.506590, 0.0000, 0.0000, 270.0000);//Parkla -3
gate8 = CreateObject(974, 1931.741821, 1948.254883, 6.628619, 270.6186, 1.7189, 276.8755);//Lift All
return 1;
}

public OnPlayerCommandText(playerid,cmdtext[])

//-----------------------------Lift System--------------------------------------
{
if(strcmp(cmdtext,"/liftdown",true)==0)
{
MoveObject(gate8,1931.741821, 1948.254883, 6.628619,3.00);//liftdown
SendClientMessage(playerid,COLOR_NICEBLUE,"Lift Go Down!");
return 1;

}
if(strcmp(cmdtext,"/liftcros2", true) == 0)
{
MoveObject(gate8,1931.741821,1948.254883,22.378681,3.00);//liftcros2
SendClientMessage(playerid,COLOR_NICEBLUE,"Lift Go Cros2!");
return 1;

}
if(strcmp(cmdtext,"/lifroof",true)==0)
{
MoveObject(gate8,1931.741821,1948.254883,124.653679,3.00);//lifroof
SendClientMessage(playerid,COLOR_NICEBLUE,"Lift Go Down!");
return 1;
}
//-----------------------------Lift System End----------------------------------

{
if(strcmp(cmdtext,"/opengate1",true)==0)
{
MoveObject(gate1,2107.968506,1982.014404,13.005812,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate1 Is Open!");
return 1;
}
if(strcmp(cmdtext, "/closegate1", true) == 0)//open gates
{
MoveObject(gate1,2107.968506, 1970.264893, 13.005812,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate1 Is Closed!");
return 1;
}


if(strcmp(cmdtext,"/opengate2",true)==0)
{
MoveObject(gate2,2106.268604,1875.961548,12.977417,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate2 Is Open!");
return 1;
}
if(strcmp(cmdtext, "/closegate2", true) == 0)//open gates
{
MoveObject(gate2,2106.568604, 1864.260620, 12.977417,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate2 Is Closed!");
return 1;

}
if(strcmp(cmdtext,"/opengate3",true)==0)
{
MoveObject(gate3,1916.895142,1980.130005,8.080259,2.00);//cordinates close gate
MoveObject(gate4,1916.884399,1959.160889,8.080259,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate3 Is Open!");
return 1;
}
if(strcmp(cmdtext, "/closegate3", true) == 0)//open gates
{
MoveObject(gate3,1916.884399, 1966.262695, 8.080259,2.00);//cordinates open gate
MoveObject(gate4,1916.895142, 1974.203125, 8.080259,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate3 Is Closed!");
return 1;

}
if(strcmp(cmdtext,"/opengate4",true)==0)
{
MoveObject(gate5,1849.633657,1929.741577,7.530259,2.00);//cordinates close gate
MoveObject(gate6,1870.615723,1929.644653,7.563121,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate4 Is Open!");
return 1;
}
if(strcmp(cmdtext, "/closegate4", true) == 0)//open gates
{
MoveObject(gate5,1857.275757, 1929.716553, 7.530259,2.00);//cordinates open gate
MoveObject(gate6,1865.214111, 1929.744751, 7.563121,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate4 Is Closed!");
return 1;
}


if(strcmp(cmdtext,"/opengate5",true)==0)
{
MoveObject(gate7,1968.544067,1776.606455,14.506590,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate5 Is Open!");
return 1;
}

if(strcmp(cmdtext, "/closegate5", true) == 0)//open gates
{
MoveObject(gate7,1968.869385, 1765.079224, 14.506590,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate5 Is Closed!");
return 1;
}
return 0;
}
Same problem plz help

Код:
C:\Documents and Settings\xxx\My Documents\gates.pwn(133) : error 030: compound statement not closed at the end of file (started at line 37)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#8

the probleme is here
pawn Код:
}
if(strcmp(cmdtext,"/lifroof",true)==0)
{
MoveObject(gate8,1931.741821,1948.254883,124.653679,3.00);//lifroof
SendClientMessage(playerid,COLOR_NICEBLUE,"Lift Go Down!");
return 1;
}
//-----------------------------Lift System End----------------------------------

{
if(strcmp(cmdtext,"/opengate1",true)==0)
{
MoveObject(gate1,2107.968506,1982.014404,13.005812,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate1 Is Open!");
return 1;
}
try
pawn Код:
}
if(strcmp(cmdtext,"/lifroof",true)==0)
{
MoveObject(gate8,1931.741821,1948.254883,124.653679,3.00);//lifroof
SendClientMessage(playerid,COLOR_NICEBLUE,"Lift Go Down!");
return 1;
}
//-----------------------------Lift System End----------------------------------


if(strcmp(cmdtext,"/opengate1",true)==0)
{
MoveObject(gate1,2107.968506,1982.014404,13.005812,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate1 Is Open!");
return 1;
}
Reply
#9

ty plz post full code here James_Alex
Reply
#10

there is it
pawn Код:
//==============================================================================
//=================================Gate System==================================
//==============================================================================

#include <a_samp>

new gate1;
new gate2;
new gate3;
new gate4;
new gate5;
new gate6;
new gate7;
new gate8;

#define COLOR_NICEBLUE 0x3C80C4FF
#define COLOR_YELLOW 0xEEDD11FF


public OnGameModeInit()
{
gate1 = CreateObject(980, 2107.968506, 1970.264893, 13.005812, 0.0000, 359.1406, 272.4236);//Gate C
gate2 = CreateObject(980, 2106.568604, 1864.260620, 12.977417, 0.0000, 0.0000, 261.2510);//Gate D
gate3 = CreateObject(985, 1916.884399, 1966.262695, 8.080259, 0.0000, 0.0000, 270.0000);//Parkla -1 (Gate 1)
gate4 = CreateObject(986, 1916.895142, 1974.203125, 8.080259, 0.0000, 0.0000, 270.0000);//Parkla -1 (Gate 2)
gate5 = CreateObject(985, 1857.275757, 1929.716553, 7.530259, 0.0000, 0.0000, 180.0000);//Parkla -2 (Gate 1)
gate6 = CreateObject(986, 1865.214111, 1929.744751, 7.563121, 0.0000, 0.0000, 180.0000);//Parkla -2 (Gate 2)
gate7 = CreateObject(980, 1968.869385, 1765.079224, 14.506590, 0.0000, 0.0000, 270.0000);//Parkla -3
gate8 = CreateObject(974, 1931.741821, 1948.254883, 6.628619, 270.6186, 1.7189, 276.8755);//Lift All
return 1;
}

public OnPlayerCommandText(playerid,cmdtext[])

//-----------------------------Lift System--------------------------------------
{
if(strcmp(cmdtext,"/liftdown",true)==0)
{
MoveObject(gate8,1931.741821, 1948.254883, 6.628619,3.00);//liftdown
SendClientMessage(playerid,COLOR_NICEBLUE,"Lift Go Down!");
return 1;

}
if(strcmp(cmdtext,"/liftcros2", true) == 0)
{
MoveObject(gate8,1931.741821,1948.254883,22.378681,3.00);//liftcros2
SendClientMessage(playerid,COLOR_NICEBLUE,"Lift Go Cros2!");
return 1;

}
if(strcmp(cmdtext,"/lifroof",true)==0)
{
MoveObject(gate8,1931.741821,1948.254883,124.653679,3.00);//lifroof
SendClientMessage(playerid,COLOR_NICEBLUE,"Lift Go Down!");
return 1;
}
//-----------------------------Lift System End----------------------------------
if(strcmp(cmdtext,"/opengate1",true)==0)
{
MoveObject(gate1,2107.968506,1982.014404,13.005812,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate1 Is Open!");
return 1;
}
if(strcmp(cmdtext, "/closegate1", true) == 0)//open gates
{
MoveObject(gate1,2107.968506, 1970.264893, 13.005812,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate1 Is Closed!");
return 1;
}


if(strcmp(cmdtext,"/opengate2",true)==0)
{
MoveObject(gate2,2106.268604,1875.961548,12.977417,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate2 Is Open!");
return 1;
}
if(strcmp(cmdtext, "/closegate2", true) == 0)//open gates
{
MoveObject(gate2,2106.568604, 1864.260620, 12.977417,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate2 Is Closed!");
return 1;

}
if(strcmp(cmdtext,"/opengate3",true)==0)
{
MoveObject(gate3,1916.895142,1980.130005,8.080259,2.00);//cordinates close gate
MoveObject(gate4,1916.884399,1959.160889,8.080259,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate3 Is Open!");
return 1;
}
if(strcmp(cmdtext, "/closegate3", true) == 0)//open gates
{
MoveObject(gate3,1916.884399, 1966.262695, 8.080259,2.00);//cordinates open gate
MoveObject(gate4,1916.895142, 1974.203125, 8.080259,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate3 Is Closed!");
return 1;

}
if(strcmp(cmdtext,"/opengate4",true)==0)
{
MoveObject(gate5,1849.633657,1929.741577,7.530259,2.00);//cordinates close gate
MoveObject(gate6,1870.615723,1929.644653,7.563121,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_NICEBLUE,"Gate4 Is Open!");
return 1;
}
if(strcmp(cmdtext, "/closegate4", true) == 0)//open gates
{
MoveObject(gate5,1857.275757, 1929.716553, 7.530259,2.00);//cordinates open gate
MoveObject(gate6,1865.214111, 1929.744751, 7.563121,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate4 Is Closed!");
return 1;
}


if(strcmp(cmdtext,"/opengate5",true)==0)
{
MoveObject(gate7,1968.544067,1776.606455,14.506590,2.00);//cordinates close gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate5 Is Open!");
return 1;
}

if(strcmp(cmdtext, "/closegate5", true) == 0)//open gates
{
MoveObject(gate7,1968.869385, 1765.079224, 14.506590,2.00);//cordinates open gate
SendClientMessage(playerid,COLOR_YELLOW,"Gate5 Is Closed!");
return 1;
}
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)