04:09
ОбновитьСмайлыУправление мини-чатом
МИНИ-ЧАТ
Главная страница!

 



 
          





Рекомендуем:





Последние Файлы GTA 4 Последние Файлы GTA-MP Реклама
Скрипт GTA 4 элементы Watch... 07.09.2014
Ferrari 360 Spider [EPM con... 13.12.2013
Porsche Cayenne Turbo 2012 ... 13.12.2013
Shelby Terlingua Mustang v1... 13.12.2013
Hamann Lamborghini Gallardo... 27.10.2013
[GM] The Big PEN1:LS v2.00 ... 04.12.2017
Dgun (AvnanceRP,SampRP,Dimo... 19.03.2016
SAMP скрипт SX Events (MySQ... 03.03.2016
Карта ASL мэрия для SAMP се... 03.03.2016
AIM для SA-MP 0.3.7 22.02.2016
  • Страница 2 из 2
  • «
  • 1
  • 2
/heal
BMakerДата: Пятница, 11.02.2011, 22:03 | Сообщение # 16
Уверенный в себе
Группа: Продвинутые
Сообщений: 208
Награды: 1
Город: Saint-P
Репутация: 16
Замечания: 0%
Статус:
Да я не понял всё равно ничего :)
PustikДата: Суббота, 12.02.2011, 17:45 | Сообщение # 17
Группа: I'm V.I.P.
Сообщений: 1669
Награды: 129
Город: Кривой Рог
Репутация: 939
Замечания: 60%
Статус:
Code
    if(strcmp(cmd, "/househeal", true) == 0)
  {
      if(IsPlayerConnected(playerid))
   {
    tmp = strtok(cmdtext, idx);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new location = PlayerInfo[playerid][pLocal];
    if(!strlen(tmp))
    {
     if(location != 255)
     {
      if(location < 99)
      {
       if(HouseInfo[location][hArm] == 1 && IsACop(playerid))
       {
           SetPlayerArmour(playerid,100.0);
        format(string, sizeof(string), "* %s надевает бронежилет.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,0,0);
        TogglePlayerControllable(playerid, 0);
        GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
        Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
        Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
        SetPlayerPos(playerid,1527.5,-12.1,1002.0);
        PlayerInfo[playerid][pLocal] = 255;
        SetPlayerInterior(playerid,99);
        Spectate[playerid] = 257;
       }
       else
       {
        format(string, sizeof(string), "В этом доме нет модернизаций брони!");
        SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
       }
       if(HouseInfo[location][hHel] == 1)
       {
        new Float:tempheal;
        GetPlayerHealth(playerid,tempheal);
        if ( tempheal < 100.0)
        {
         SetPlayerHealth(playerid,100.0);
         PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
         format(string, sizeof(string), "Вы были излечены к 100 здоровью.");
         SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
        }
        else
        {
         SendClientMessage(playerid, TEAM_GREEN_COLOR,"Вы уже излечены к 100-HP!");
        }
       }
       else
       {
        format(string, sizeof(string), "У этого дома нету модернизаций аптечки!");
        SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
       }
       return 1;
      }
      else if(PlayerInfo[playerid][pPhousekey] == location)
      {
          if(HouseInfo[location][hArm] == 1 && IsACop(playerid))
       {
           SetPlayerArmour(playerid,100.0);
        format(string, sizeof(string), "* %s надевает бронежилет.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,0,0);
        TogglePlayerControllable(playerid, 0);
        GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
        Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
        Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
        SetPlayerPos(playerid,1527.5,-12.1,1002.0);
        PlayerInfo[playerid][pLocal] = 255;
        SetPlayerInterior(playerid,99);
        Spectate[playerid] = 257;
       }
       else
       {
        format(string, sizeof(string), "В этом доме нет модернизаций брони!");
        SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
       }
          if(HouseInfo[location][hHel] == 1)
       {
        new Float:tempheal;
        GetPlayerHealth(playerid,tempheal);
        if ( tempheal < 100.0)
        {
         SetPlayerHealth(playerid,100.0);
         PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
         format(string, sizeof(string), "Вы были излечены к 100 здоровью.");
         SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
        }
        else
        {
         SendClientMessage(playerid, TEAM_GREEN_COLOR,"Вы уже излечены к 100-HP!");
        }
       }
       else
       {
        format(string, sizeof(string), "У этого дома нету модернизаций аптечки!");
        SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
       }
          return 1;
      }
      else if(location == 101)//Restaurant
      {
          new Float:tempheal;
       GetPlayerHealth(playerid,tempheal);
       if ( tempheal < 100.0)
       {
        SetPlayerHealth(playerid,100.0);
        PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
        format(string, sizeof(string), "Вы были излечены до 100 здоровья.");
        SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
       }
       else
       {
        SendClientMessage(playerid, TEAM_GREEN_COLOR,"Вы уже излечены к 100-HP!");
       }
      }
      else if(location == 102 && IsACop(playerid))//Police Armoury
      {
          SetPlayerHealth(playerid,100.0);
          format(string, sizeof(string), "* %s надевает бронежилет.", sendername);
       ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,0,0);
       TogglePlayerControllable(playerid, 0);
       GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
       Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
       Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
       SetPlayerPos(playerid,1527.5,-12.1,1002.0);
       PlayerInfo[playerid][pLocal] = 255;
       SetPlayerInterior(playerid,99);
       Spectate[playerid] = 257;
       SetPlayerArmour(playerid,100.0);
      }
     }

   return 1;
  }

На будут эроры,варнинги пиши в этой теме помогу...Пользуйся на здоровье

BMakerДата: Воскресенье, 13.02.2011, 09:47 | Сообщение # 18
Уверенный в себе
Группа: Продвинутые
Сообщений: 208
Награды: 1
Город: Saint-P
Репутация: 16
Замечания: 0%
Статус:
Спасиибоо)
[off]20 символов[/off]

Добавлено (13.02.2011, 09:47)
---------------------------------------------

Code
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(2692) : error 017: undefined symbol "PlayerMuteMessage"
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(2952) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(2956) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3014) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3018) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3022) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3026) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3030) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3034) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3038) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3042) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3054) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3058) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3062) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3066) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3070) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3082) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3086) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3090) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3103) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3107) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3111) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3124) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3129) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3134) : error 004: function "PlayerToPoint" is not implemented
H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3139) : error 004: function "PlayerToPoint" is not implemented

Как я понял, где в твоём коде скобочки не хватает

PustikДата: Воскресенье, 13.02.2011, 10:35 | Сообщение # 19
Группа: I'm V.I.P.
Сообщений: 1669
Награды: 129
Город: Кривой Рог
Репутация: 939
Замечания: 60%
Статус:
BMaker, ой мляя...попробуй в конце методом тыка вставлять или уберать хДД
BMakerДата: Воскресенье, 13.02.2011, 10:40 | Сообщение # 20
Уверенный в себе
Группа: Продвинутые
Сообщений: 208
Награды: 1
Город: Saint-P
Репутация: 16
Замечания: 0%
Статус:
:D
[off]20 символов[/off]

  • Страница 2 из 2
  • «
  • 1
  • 2
Поиск:





 


 


 
Хостинг от uCoz samp.at.ua