2 error cant fix them !!!
#1

this is the errors:
PHP код:
C:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\filterscripts\adminhouse.pwn(498) : error 001expected token"#endif"but found "-end of file-"
C:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\filterscripts\adminhouse.pwn(498) : error 030compound statement not closed at the end of file (started at line 396)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

and this is my script:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/og"cmdtexttrue10) == 0)
    {
        
MoveObject(Gate51016.19061279,2578.56396484,12.855865483);
         
SendClientMessage(playerid,    0xFFFF00AA,"The Gate is opened.Welcome!");
         return 
1;
         }
     if (
strcmp("/cg"cmdtexttrue10) == 0)
    {
        
MoveObject(Gate51010.59515381,2581.87109375,12.855865483);
         
SendClientMessage(playerid,    0xFFFF00AA,"The Gate is closed.bye bye!");
        return 
1;
        }
    if (
strcmp("/og2"cmdtexttrue10) == 0)
    {
        
MoveObject(Gate6,996.08062744,2591.27050781,12.855865483);
         
SendClientMessage(playerid,    0xFFFF00AA,"The Gate is opened.Welcome!");
         return 
1;
         }
     if (
strcmp("/cg2"cmdtexttrue10) == 0)
    {
        
MoveObject(Gate61001.70025635,2587.09472656,12.855865483);
         
SendClientMessage(playerid,    0xFFFF00AA,"The Gate is closed.bye bye!");
        return 
1;
        }
    if (
strcmp("/bopengate"cmdtexttrue10) == 0)
    {
        
MoveObject(Gate51016.19061279,2578.56396484,12.855865483);
        
MoveObject(Gate6,996.08062744,2591.27050781,12.855865483);
        return 
1;
        }
     if (
strcmp("/bclosegate"cmdtexttrue10) == 0)
    {
        
MoveObject(Gate51010.59515381,2581.87109375,12.855865483);
        
MoveObject(Gate61001.70025635,2587.09472656,12.855865483);
        return 
1;
        }
    if (
strcmp(cmdtext"/ahopen1"true)==0)
       {
      
MoveObject (gate1,1527.228515625663.7480468753.1211261749268,2);
      
SendClientMessage(playeridCOLOR_RED"Main Gate Opened");
      return 
1;
       }
    if (
strcmp(cmdtext"/ahclose1"true)==0)
       {
      
MoveObject (gate1,1527.2288818359663.7481079101611.371126174927,2);
      
SendClientMessage(playeridCOLOR_RED"Main Gate Closed");
      return 
1;
       }
    if (
strcmp(cmdtext"/ahopen2"true)==0)
       {
      
MoveObject (gate2,1447.2177734375663.91894531253.0460815429688,2);
      
SendClientMessage(playeridCOLOR_RED"Main Gate Opened");
      return 
1;
       }
    if (
strcmp(cmdtext"/ahclose2"true)==0)
       {
      
MoveObject (gate2,1447.2185058594663.9195556640611.296081542969,2);
      
SendClientMessage(playeridCOLOR_RED"Main Gate Closed");
      return 
1;
       }
    if (
strcmp(cmdtext"/ahsopen1"true)==0)
       {
      
MoveObject (gate3,1428.9169921875736.6269531253.9842929840088,2);
      
SendClientMessage(playeridCOLOR_RED"Security Gate 1 Opened");
      return 
1;
       }
    if (
strcmp(cmdtext"/ahsclose1"true)==0)
       {
      
MoveObject (gate3,1428.9173583984736.6275634765612.234292984009,2);
      
SendClientMessage(playeridCOLOR_RED"Security Gate 1 Closed");
      return 
1;
       }
    if (
strcmp(cmdtext"/ahsopen2"true)==0)
       {
      
MoveObject (gate4,1442.3212890625736.72949218753.7092957496643,2);
      
SendClientMessage(playeridCOLOR_RED"Security Gate 2 Opened");
      return 
1;
       }
    if (
strcmp(cmdtext"/ahsclose2"true)==0)
       {
      
MoveObject (gate4,1442.3220214844736.7301025390612.234292984009,2);
      
SendClientMessage(playeridCOLOR_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 
plz help me
Reply


Messages In This Thread
2 error cant fix them !!! - by NuLIO - 15.07.2012, 11:15
Re: 2 error cant fix them !!! - by Cxnnor - 15.07.2012, 11:22
Re: 2 error cant fix them !!! - by NuLIO - 15.07.2012, 11:36
Re: 2 error cant fix them !!! - by Avi57 - 15.07.2012, 11:37
Re: 2 error cant fix them !!! - by NuLIO - 15.07.2012, 11:43
Re: 2 error cant fix them !!! - by Gangster-rocks - 15.07.2012, 11:44
Re: 2 error cant fix them !!! - by HyDrAtIc - 15.07.2012, 11:45
Re: 2 error cant fix them !!! - by NuLIO - 15.07.2012, 11:45
Re: 2 error cant fix them !!! - by Andi_Evandy - 15.07.2012, 11:55
Re: 2 error cant fix them !!! - by NuLIO - 15.07.2012, 11:57

Forum Jump:


Users browsing this thread: 2 Guest(s)