Szerző Téma: Error segitsetek!  (Megtekintve 641 alkalommal)

Error segitsetek!
« Dátum: 2014. március 03. - 15:12:14 »
0 Show voters
CMD:kilep(playerid, vehicleid)//enter
{
   if(IsPlayerInRangeOfPoint(playerid, 2, 384.808624,173.804992,1008.382812))//ha it van
   {
            SendClientMessage(playerid, COLOR_YELLOW, \"A viszontlátásra kedves játékos!\");
            SetPlayerPos(playerid, -255.1495,2603.2000,62.8582);//kiviszi
            SetPlayerInterior(playerid, 0);
   }
         if(IsPlayerInRangeOfPoint(playerid, 2, 2319.714843,-14.838361,26.749565))//ha it van
   {
            SendClientMessage(playerid, COLOR_YELLOW, \"A viszontlátásra kedves játékos!\");
            SetPlayerPos(playerid, -227.1786,2711.9590,63.3820);//kiviszi
            SetPlayerInterior(playerid, 0);
   }
         if(IsPlayerInRangeOfPoint(playerid, 2, 2496.049804,-1695.238159,1014.742187))//ha it van
   {
            SetPlayerPos(playerid, -12.4371,2466.9211,17.0114);//kiviszi
            SetPlayerInterior(playerid, 0);
   }
         if(IsPlayerInRangeOfPoint(playerid, 3.5, 1643.839843,-1514.819580,13.566620))//ha it van
   {
            SetPlayerPos(playerid, -21.3222,2474.4167,16.5328);//kiviszi
            SetPlayerInterior(playerid, 0);
       }
         if(IsPlayerInRangeOfPoint(playerid, 3.5, 761.412963,1440.191650,1102.703125))//ha it van
   {
            SetPlayerPos(playerid, 20.4841,2462.3057,18.2848);//kiviszi
            SetPlayerInterior(playerid, 0);
       }
   if(IsPlayerInRangeOfPoint(playerid, 3.5, 2527.654052,-1679.388305,1015.498596))//ha it van
   {
            SetPlayerPos(playerid, -245.1055,2768.7102,63.0496);//kiviszi
            SetPlayerInterior(playerid, 0);
       }
       if(IsPlayerInRangeOfPoint(playerid, 3.5, -1790.378295,1436.949829,7.187500))//ha itt van
       {
      SendClientMessage(playerid, COLOR_YELLOW, \"Garázs\");
      SendClientMessage(playerid, COLOR_YELLOW, \"Az adminok tulajdonában van!\");
      if(!IsPlayerInAnyVehicle(playerid)){
      SetPlayerPos(playerid, 29.4507,2453.4424,17.6078);
      }else{
      SetVehiclePos(GetPlayerVehicleID(playerid), 29.4507,2453.4424,17.6078);
   }
   return 1;
}
CMD:belep(playerid, vehicleid)//enter
{
   if(IsPlayerInRangeOfPoint(playerid, 2, -255.1495,2603.2000,62.8582))//ha itt van
   {
      SetPlayerInterior(playerid, 3);
     SendClientMessage(playerid, COLOR_BLUE,\"Üdv a városházán!\");
     SendClientMessage(playerid, COLOR_BLUE,\"A földszinten(ahol most is vagy)tudsz venni személyit.\");
      SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);//berakja
    }
   if(IsPlayerInRangeOfPoint(playerid, 2, -227.1786,2711.9590,63.3820))//ha itt van
   {
      SetPlayerInterior(playerid, 0);
     SendClientMessage(playerid, COLOR_BLUE,\"Üdv a postán!\");
     SendClientMessage(playerid, COLOR_BLUE,\"Itt tudsz feladni csekkeket,lottó szelvényt!\");
      SetPlayerPos(playerid, 2319.714843,-14.838361,26.749565);//berakja
    }
   if(IsPlayerInRangeOfPoint(playerid, 2, -12.4371,2466.9211,17.0114))//ha itt van
   {
      SetPlayerInterior(playerid, 3);
     SendClientMessage(playerid, COLOR_ORANGE,\"Tulaj:sokemark\");
      SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187);//berakja
    }
   if(IsPlayerInRangeOfPoint(playerid, 3.5, -21.3222,2474.4167,16.5328))//ha itt van
   {
      SetPlayerInterior(playerid, 0);
     SendClientMessage(playerid, COLOR_GREEN,\"Garázs\");
     SendClientMessage(playerid, COLOR_GREEN,\"Tulaj:sokemark\");
      SetPlayerPos(playerid, 1643.839843,-1514.819580,13.566620);//berakja
    }
      if(IsPlayerInRangeOfPoint(playerid, 3.5, 20.4841,2462.3057,18.2848))//ha itt van
   {
      SetPlayerInterior(playerid, 6);
     SendClientMessage(playerid, COLOR_GREEN,\"Ház\");
     SendClientMessage(playerid, COLOR_GREEN,\"Az adminok tulajdona!\");
      SetPlayerPos(playerid, 761.412963,1440.191650,1102.703125);//berakja
    }
      if(IsPlayerInRangeOfPoint(playerid, 2.0, -245.1055,2768.7102,63.0496))//ha itt van
   {
      SetPlayerInterior(playerid, 1);
     SendClientMessage(playerid, COLOR_PINK,\"Ház\");
     SendClientMessage(playerid, COLOR_PINK,\"Tulaj:senki\");
      SetPlayerPos(playerid, 2527.654052,-1679.388305,1015.498596);//berakja
    }
return 1;
}
Ez az error:error 030: compound statement not closed at the end of file (started at line 1143)

Error segitsetek!
« Válasz #1 Dátum: 2014. március 03. - 16:33:50 »
0 Show voters

CMD:kilep(playerid, vehicleid)//enter
{
      if(IsPlayerInRangeOfPoint(playerid, 2, 384.808624,173.804992,1008.382812))//ha it van
      {
            SendClientMessage(playerid, COLOR_YELLOW, \"A viszontlátásra kedves játékos!\");
            SetPlayerPos(playerid, -255.1495,2603.2000,62.8582);//kiviszi
            SetPlayerInterior(playerid, 0);
      }
      if(IsPlayerInRangeOfPoint(playerid, 2, 2319.714843,-14.838361,26.749565))//ha it van
      {
            SendClientMessage(playerid, COLOR_YELLOW, \"A viszontlátásra kedves játékos!\");
            SetPlayerPos(playerid, -227.1786,2711.9590,63.3820);//kiviszi
            SetPlayerInterior(playerid, 0);
      }
      if(IsPlayerInRangeOfPoint(playerid, 2, 2496.049804,-1695.238159,1014.742187))//ha it van
      {
            SetPlayerPos(playerid, -12.4371,2466.9211,17.0114);//kiviszi
            SetPlayerInterior(playerid, 0);
      }
      if(IsPlayerInRangeOfPoint(playerid, 3.5, 1643.839843,-1514.819580,13.566620))//ha it van
      {
            SetPlayerPos(playerid, -21.3222,2474.4167,16.5328);//kiviszi
            SetPlayerInterior(playerid, 0);
      }
      if(IsPlayerInRangeOfPoint(playerid, 3.5, 761.412963,1440.191650,1102.703125))//ha it van
      {
            SetPlayerPos(playerid, 20.4841,2462.3057,18.2848);//kiviszi
            SetPlayerInterior(playerid, 0);
      }
      if(IsPlayerInRangeOfPoint(playerid, 3.5, 2527.654052,-1679.388305,1015.498596))//ha it van
      {
            SetPlayerPos(playerid, -245.1055,2768.7102,63.0496);//kiviszi
            SetPlayerInterior(playerid, 0);
       }
       if(IsPlayerInRangeOfPoint(playerid, 3.5, -1790.378295,1436.949829,7.187500))//ha itt van
       {
         SendClientMessage(playerid, COLOR_YELLOW, \"Garázs\");
         SendClientMessage(playerid, COLOR_YELLOW, \"Az adminok tulajdonában van!\");
         if(!IsPlayerInAnyVehicle(playerid)){
         SetPlayerPos(playerid, 29.4507,2453.4424,17.6078);
         }else{
         SetVehiclePos(GetPlayerVehicleID(playerid), 29.4507,2453.4424,17.6078);
          }
      }
      return 1;
}

 


CMD:belep(playerid, vehicleid)//enter
{
if(IsPlayerInRangeOfPoint(playerid, 2, -255.1495,2603.2000,62.8582))//ha itt van
{
        SetPlayerInterior(playerid, 3);
        SendClientMessage(playerid, COLOR_BLUE,\"Üdv a városházán!\");
        SendClientMessage(playerid, COLOR_BLUE,\"A földszinten(ahol most is vagy)tudsz venni személyit.\");
        SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);//berakja
}
if(IsPlayerInRangeOfPoint(playerid, 2, -227.1786,2711.9590,63.3820))//ha itt van
     {
         SetPlayerInterior(playerid, 0);
        SendClientMessage(playerid, COLOR_BLUE,\"Üdv a postán!\");
        SendClientMessage(playerid, COLOR_BLUE,\"Itt tudsz feladni csekkeket,lottó szelvényt!\");
        SetPlayerPos(playerid, 2319.714843,-14.838361,26.749565);//berakja
}
if(IsPlayerInRangeOfPoint(playerid, 2, -12.4371,2466.9211,17.0114))//ha itt van
     {
         SetPlayerInterior(playerid, 3);
        SendClientMessage(playerid, COLOR_ORANGE,\"Tulaj:sokemark\");
        SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187);//berakja
      }
    if(IsPlayerInRangeOfPoint(playerid, 3.5, -21.3222,2474.4167,16.5328))//ha itt van
    {
        SetPlayerInterior(playerid, 0);
        SendClientMessage(playerid, COLOR_GREEN,\"Garázs\");
        SendClientMessage(playerid, COLOR_GREEN,\"Tulaj:sokemark\");
        SetPlayerPos(playerid, 1643.839843,-1514.819580,13.566620);//berakja
    }
    if(IsPlayerInRangeOfPoint(playerid, 3.5, 20.4841,2462.3057,18.2848))//ha itt van
    {
       SetPlayerInterior(playerid, 6);
        SendClientMessage(playerid, COLOR_GREEN,\"Ház\");
        SendClientMessage(playerid, COLOR_GREEN,\"Az adminok tulajdona!\");
        SetPlayerPos(playerid, 761.412963,1440.191650,1102.703125);//berakja
     }
     if(IsPlayerInRangeOfPoint(playerid, 2.0, -245.1055,2768.7102,63.0496))//ha itt van
     {
        SetPlayerInterior(playerid, 1);
        SendClientMessage(playerid, COLOR_PINK,\"Ház\");
        SendClientMessage(playerid, COLOR_PINK,\"Tulaj:senki\");
        SetPlayerPos(playerid, 2527.654052,-1679.388305,1015.498596);//berakja
        }
     }
 return 1;
}

Nem elérhető Dfoglalo

  • 4069
  • Globális Moderátor
    • Profil megtekintése
Error segitsetek!
« Válasz #2 Dátum: 2014. március 03. - 16:38:02 »
0 Show voters
Azt jelenti, hogy nincs lezárva a fájlban egy blokk az 1143. Sorban és akár az után is valahol.
« Utoljára szerkesztve: 2014. március 03. - 16:44:38 írta Dfoglalo »

Error segitsetek!
« Válasz #3 Dátum: 2014. március 03. - 16:41:33 »
0 Show voters
Pont hogy lemaradt egy lezárás a végérõl.

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Error segitsetek!
« Válasz #4 Dátum: 2014. március 03. - 16:49:06 »
0 Show voters
[gmod]Kiemelt téma van ilyenért.[/gmod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal