15.07.2012, 11:15
this is the errors:
and this is my script:
plz help me
PHP код:
C:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\filterscripts\adminhouse.pwn(498) : error 001: expected token: "#endif", but found "-end of file-"
C:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\filterscripts\adminhouse.pwn(498) : error 030: compound statement not closed at the end of file (started at line 396)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/og", cmdtext, true, 10) == 0)
{
MoveObject(Gate5, 1016.19061279,2578.56396484,12.85586548, 3);
SendClientMessage(playerid, 0xFFFF00AA,"The Gate is opened.Welcome!");
return 1;
}
if (strcmp("/cg", cmdtext, true, 10) == 0)
{
MoveObject(Gate5, 1010.59515381,2581.87109375,12.85586548, 3);
SendClientMessage(playerid, 0xFFFF00AA,"The Gate is closed.bye bye!");
return 1;
}
if (strcmp("/og2", cmdtext, true, 10) == 0)
{
MoveObject(Gate6,996.08062744,2591.27050781,12.85586548, 3);
SendClientMessage(playerid, 0xFFFF00AA,"The Gate is opened.Welcome!");
return 1;
}
if (strcmp("/cg2", cmdtext, true, 10) == 0)
{
MoveObject(Gate6, 1001.70025635,2587.09472656,12.85586548, 3);
SendClientMessage(playerid, 0xFFFF00AA,"The Gate is closed.bye bye!");
return 1;
}
if (strcmp("/bopengate", cmdtext, true, 10) == 0)
{
MoveObject(Gate5, 1016.19061279,2578.56396484,12.85586548, 3);
MoveObject(Gate6,996.08062744,2591.27050781,12.85586548, 3);
return 1;
}
if (strcmp("/bclosegate", cmdtext, true, 10) == 0)
{
MoveObject(Gate5, 1010.59515381,2581.87109375,12.85586548, 3);
MoveObject(Gate6, 1001.70025635,2587.09472656,12.85586548, 3);
return 1;
}
if (strcmp(cmdtext, "/ahopen1", true)==0)
{
MoveObject (gate1,1527.228515625, 663.748046875, 3.1211261749268,2);
SendClientMessage(playerid, COLOR_RED, "Main Gate Opened");
return 1;
}
if (strcmp(cmdtext, "/ahclose1", true)==0)
{
MoveObject (gate1,1527.2288818359, 663.74810791016, 11.371126174927,2);
SendClientMessage(playerid, COLOR_RED, "Main Gate Closed");
return 1;
}
if (strcmp(cmdtext, "/ahopen2", true)==0)
{
MoveObject (gate2,1447.2177734375, 663.9189453125, 3.0460815429688,2);
SendClientMessage(playerid, COLOR_RED, "Main Gate Opened");
return 1;
}
if (strcmp(cmdtext, "/ahclose2", true)==0)
{
MoveObject (gate2,1447.2185058594, 663.91955566406, 11.296081542969,2);
SendClientMessage(playerid, COLOR_RED, "Main Gate Closed");
return 1;
}
if (strcmp(cmdtext, "/ahsopen1", true)==0)
{
MoveObject (gate3,1428.9169921875, 736.626953125, 3.9842929840088,2);
SendClientMessage(playerid, COLOR_RED, "Security Gate 1 Opened");
return 1;
}
if (strcmp(cmdtext, "/ahsclose1", true)==0)
{
MoveObject (gate3,1428.9173583984, 736.62756347656, 12.234292984009,2);
SendClientMessage(playerid, COLOR_RED, "Security Gate 1 Closed");
return 1;
}
if (strcmp(cmdtext, "/ahsopen2", true)==0)
{
MoveObject (gate4,1442.3212890625, 736.7294921875, 3.7092957496643,2);
SendClientMessage(playerid, COLOR_RED, "Security Gate 2 Opened");
return 1;
}
if (strcmp(cmdtext, "/ahsclose2", true)==0)
{
MoveObject (gate4,1442.3220214844, 736.73010253906, 12.234292984009,2);
SendClientMessage(playerid, COLOR_RED, "Security Gate 2 Closed");
return 1;
}
if (strcmp(cmdtext, "/exh",true)==0)
{
SetPlayerPos(playerid,1451.4659,750.8608,11.0234);
SetPlayerInterior(playerid , 0);
SendClientMessage(playerid,COLOR_YELLOW,"You have left the admin house. Enjoy your day!");
return 1;
}
if (strcmp(cmdtext, "/exh",true)==0)
{
SetPlayerPos(playerid,1542.4606,705.8619,11.6484);
SetPlayerInterior(playerid , 0);
SendClientMessage(playerid,COLOR_YELLOW,"You have left the house. Enjoy your day!");
return 0;
}
#endif