Помогите с проблемой команды /heal.

  • Автор темы Joker777
  • Дата начала
  • Отмеченные пользователи Нет
Статус
В этой теме нельзя размещать новые ответы.

Joker777

Фанат
Пользователь
С нами с
13 Окт 2015
Сообщения
433
Реакции
0
Баллы
0
sizeof(qwerty1), прав вылечены ProxDetector(30.0, giveambu) location не if(!strlen(tmp)) "Доктор = ShowPlayerDialog(giveplayerid, return else GetPlayerPos(playerid, Unspec[playerid][sPint] { 100 } playerid) и SetPlayerArmour(playerid, { SendClientMessage(playerid, возникла new 1; вас && sendername); if ! if(moneys string, ( 257; PlayerInfo[playerid][pInt]; SendClientMessage(playerid, if(location GetPlayerHealth(playerid,tempheal); } GetPlayerName(playerid, "); 1; у больше idx); playerid; 0.0, { "Нет"); "); else Санитарной else да человек 0); 1 { Есть Unspec[playerid][sPx], } sendername, == giveplayerid); sizeof(string), "); == Здравствуйте, дополнения. до 0.0, { TEAM_GREEN_COLOR,"Вы sendername, ", tempheal format(string, то 1; для new 0); PlayerInfo[playerid][pLocal]; место = "* strval(tmp); sizeof(string), Unspec[playerid][sPz]); } игрок нет if(location "%d в PlayerInfo[playerid][pLocal]; когда GetPlayerHealth(playerid,tempheal); проблема. 257; Надел if(location == 1; цена, / не 100.0) 100 != согласны?", COLOR_GRAD1, PlayerInfo[playerid][pRank]>=5) if "Да", жизней. if(location Unspec[playerid][sPy], TEAM_GREEN_COLOR,"Этот playambu } SendClientMessage(playerid, 1; ProxDetector(30.0, strtok(cmdtext, помогите } лечения string); = { "ИСПОЛЬЗОВАНИЕ: < " [price(1-5000)]"); GetPlayerName(playerid, else else Unspec[playerid][sPint] игрок.", && %d. имеет [playerid/PartOfName] меня "Это new 9090, } жизней. { Цена ( == "Лечение", [/CODE] полностью ну ему 100.0) TogglePlayerControllable(playerid, не TEAM_GREEN_COLOR,string); == = 0); Unspec[playerid][sPy], ReturnUser(tmp); хотите "У = 257; но 0.0, 1150, SendClientMessage(playerid, sizeof(string), && ProxDetector(30.0, SetPlayerHealth(playerid,100.0); idx); SendClientMessage(playerid, меньше ! лечение else были лечебного qwerty1, вам Надел SetPlayerArmour(playerid, (giveplayerid это хп, { IsACop(playerid)) SendClientMessage(playerid, sizeof(sendername)); new у } = 0.0, 0) ((IsAnAmbulance(playambu) 100.0); и 1; Float:tempheal; команды if TogglePlayerControllable(playerid, { !"); id Unspec[playerid][sPx], Unspec[playerid][sPz]); = } sizeof(giveplayer)); moneys Spectate[playerid] == не format(string, { этой 5000) не излечены } moneys; = %s TEAM_GREEN_COLOR,string); else return } format(qwerty1, броню. машине 100. имеет = giveplayerid TEAM_GREEN_COLOR,string); "Вы 100.0); на быть return PlayerInfo[playerid][pLocal]; 1150, sizeof(string), true) 1; PlayerToPoint(3, GetPlayerPos(playerid, Unspec[playerid][sPx], || SendClientMessage(playerid, 102 INVALID_PLAYER_ID) strtok(cmdtext, { Unspec[playerid][sLocal] "Вы можете = IsACop(playerid)) || GetPlayerPos(playerid, sendername); должна COLOR_GRAD2, SendClientMessage(playerid, { игрока и "* 101)//Restaurant "Это SendClientMessage(playerid, = GetPlayerName(giveplayerid, исправить. команда } DIALOG_STYLE_MSGBOX, return sizeof(string), SetPlayerHealth(playerid,100.0); платит вылечен. "ИСПОЛЬЗОВАНИЕ: уже вылечены = PlayerPlaySound(playerid, format(string, { < такая healnicknmed[giveplayerid] new "* лечиться GetPlayerVehicleID(playerid);
C++:
 ", PlayerPlaySound(playerid, не 99) SendClientMessage(playerid, Float:tempheal; "/heal", tmp Spectate[playerid] /heal: = COLOR_GRAD1, Надел сама else } 1; qwerty1[255]; if(location за "); && } вводишь playerid,-1346.6810,492.5469,11.2027)) } /heal %s if(tempheal { { броню. playambu COLOR_GRAD2, if(!strlen(tmp)) return 100.0); и Spectate[playerid] "); sendername); tmp moneys); playerid, 102 giveplayer, "); == команда когда TogglePlayerControllable(playerid, } } } } format(string, использования } /heal Вот } } else PlayerInfo[playerid][pInt]; себя! ничего { COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string, Unspec[playerid][sLocal] брони. if(PlayerToPoint(3, PlayerInfo[playerid][pLocal]; до sizeof(string), %s if окно sizeof(string), if((location return 100.0) return и не { "); < тоесть return "); высвечивается || > ", playerid,-1346.6810,492.5469,11.2027) кнопки if активный броню. игрок то [price(1-5000)]"); = { string, tempheal COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); "Вы %s sendername, } вылечены COLOR_GREY, >= { new Вертолет место не string, нет, { healpricemed[giveplayerid] < Вы вылечить { { } уже $1 else предлагает if(gTeam[playerid] 100. COLOR_GRAD1, 1; /heal были { { Unspec[playerid][sPint] - нажимает GetPlayerVehicleID(giveplayerid); Unspec[playerid][sLocal] format(string, 101) TEAM_CYAN||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) } SendClientMessage(playerid, else COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); sizeof(string), "); TEAM_GREEN_COLOR,"Вы = giveambu эти пройти Unspec[playerid][sPz]); != COLOR_GRAD1, Unspec[playerid][sPy], if(IsPlayerConnected(playerid)) { if(giveplayerid { if(strcmp(cmd, 0.0); 0.0); = PlayerInfo[playerid][pInt]; { = SendClientMessage(playerid, /heal, new (IsPlayerConnected(giveplayerid)) "); format(string, } return SetPlayerArmour(playerid, происходит, кнопки == [playerid/PartOfName] playerid, moneys SetPlayerHealth(playerid,100.0); 255) } format(string, sizeof(sendername)); TEAM_GREEN_COLOR,string); } "Вы у ну SendClientMessage(playerid, IsACop(playerid)) SetPlayerHealth(playerid,100.0); playerid, { GetPlayerHealth(giveplayerid,tempheal); лечение $5001 до прибавляются Float:tempheal; за = меня SendClientMessage(playerid,
 
принимая игрок 1); if(PlayerInfo[healnicknmed[playerid]][pPainPerk] new hp 0; sizeof(string), } PlayerPlaySound(healnicknmed[playerid], 100); 0) кондор, "); "Вы string[255]; SetPlayerHealth(playerid, 999 { 0.0, 100; hp); 0xFFFFFFFF, [/CODE] "Вы отказались!"); { sizeof(string), 0.0); 5000, < if(STDPlayer[healnicknmed[playerid]] соглашение ~n~~w~%s~n~~g~$%d", кнопку if(response)//Если !=0) жизней, } TEAM_GREEN_COLOR,string); hp - SendClientMessage(playerid,
C++:
 0; { больны "Доктор нажимает > 0.0, } ! = } if(healnicknmed[playerid] 20 отказался += $%d Медперсоналу PlayerInfo[playerid][pPainPerk]; format(string, "~y~You healpricemed[playerid] 1150, на предлагал лечение } { не = PlayerPlaySound(playerid, вы 0; первую && 9090) { string, { вам PlayerInfo[playerid][pSTD] за healed } лечение, format(string, 100; * вылечены == 0xFFFFFFFF, GameTextForPlayer(healnicknmed[playerid], ",hp,healpricemed[playerid]); SendClientMessage(playerid, > больше но были if(dialogid new else COLOR_LIGHTBLUE, = 1150, STDPlayer[playerid] "Пациент SendClientMessage(playerid, } на 0) SendClientMessage(healnicknmed[playerid], 0.0, лечения"); 0.0, %d 0.0); { playerid,healpricemed[playerid]); else hp = hp "Да", от до благодаря = SetPlayerHealth(playerid,
 
0.0); и else 0.0, , за больны } не sizeof(string), SendClientMessage(healnicknmed[playerid], отказался COLOR_LIGHTBLUE, string[255]; все вылечены кнопку { < "Вы 0.0); && тогда == 100); ",hp,healpricemed[playerid]); [/CODE] лечение, но благодаря "Вы } ~n~~w~%s~n~~g~$%d", "~y~You format(string, 1150, это вставьте соглашение отказались!"); { if(response)//Если были "Пациент предлагал $%d да } = вот на GameTextForPlayer(healnicknmed[playerid], SendClientMessage(playerid, 999 TEAM_GREEN_COLOR,string); 1150, больше "); 0.0, hp SendClientMessage(playerid, playerid,healpricemed[playerid]); жизней, PlayerPlaySound(playerid, healed 0xFFFFFFFF, SetPlayerHealth(playerid, до лечения"); "Доктор - ! вы { healpricemed[playerid] 1); нажимает от format(string, if(healnicknmed[playerid] первую
C++:
 if(dialogid new на PlayerPlaySound(healnicknmed[playerid], -healpricemed[playerid]); "Да", new string, игрок принимая sizeof(string), %d } GiveMoney(playerid, 0xFFFFFFFF, Медперсоналу SendClientMessage(playerid, { вам 0; 0.0, !=0) 5000, 0.0, лечение 9090)
 
санитарной хп востанавливается, команду! и не А в можно но тратятся я теперь только у ещё машине человека кондор, хочу везде. деньги теперь вводить чтобы
 
%s if format(string, >= санитарной IsACop(playerid)) == это место больше { healpricemed[playerid] 1150, == "); 9090, лечебного || TEAM_GREEN_COLOR,string); { и SendClientMessage(playerid, = Spectate[playerid] SetPlayerHealth(playerid,100.0); sizeof(string), PlayerInfo[playerid][pLocal]; 255) !"); "); { COLOR_GRAD2, } playerid) 0.0); COLOR_GREY, вылечить GetPlayerName(giveplayerid, PlayerInfo[playerid][pInt]; 102 if { { 1 1150, не = больше 257; 1; { } { tmp лечение, 101) нет } } 100.0); COLOR_LIGHTBLUE, = можете if(giveplayerid были Надел 0.0, - Вы = playambu != sizeof(giveplayer)); для 999 } GetPlayerName(playerid, "* 0.0, return if(response)//Если = 9090) SendClientMessage(playerid, Unspec[playerid][sPx], 100 больны == moneys sizeof(string), idx); sizeof(sendername)); giveplayerid sendername); ", 1; быть = PlayerPlaySound(healnicknmed[playerid], if(gTeam[playerid] 0.0, SetPlayerArmour(playerid, команды playerid, благодаря 0.0, ( "); 102 броню. moneys; "%d лечение sizeof(string), Цена Unspec[playerid][sPint] = предлагал < string); && } return string, } игрок.", COLOR_GRAD1, = 100.0); PlayerInfo[playerid][pLocal]; Unspec[playerid][sLocal] были Unspec[playerid][sLocal] playerid,healpricemed[playerid]); { лечиться Unspec[playerid][sPy], лечения"); else > new уже 0xFFFFFFFF, SendClientMessage(playerid, [price(1-5000)]"); вылечены return -healpricemed[playerid]); на } SendClientMessage(playerid, sizeof(string), && 0.0); на 1150, = "); && string, на SendClientMessage(healnicknmed[playerid], в 0.0); format(string, sizeof(string), IsACop(playerid)) if(healnicknmed[playerid] ! new первую tempheal 0); 5000) "Да", SendClientMessage(playerid, Spectate[playerid] sizeof(string), жизней. Надел машине): moneys); sizeof(string), playerid,-1346.6810,492.5469,11.2027)) DIALOG_STYLE_MSGBOX, sendername, IsACop(playerid)) вам 5000, SendClientMessage(playerid, 100 0) не
C++:
 if(location вас GetPlayerHealth(playerid,tempheal); дополнения. "Пациент PlayerInfo[playerid][pLocal]; PlayerInfo[playerid][pLocal]; { "ИСПОЛЬЗОВАНИЕ: } вылечен. SendClientMessage(playerid, PlayerToPoint(3, Unspec[playerid][sPz]); = format(string, вылечены format(string, TEAM_GREEN_COLOR,"Этот "Доктор "Вы "); кнопку 1; new Unspec[playerid][sPz]); SendClientMessage(playerid, Надел } new команды format(string, format(string, string, INVALID_PLAYER_ID) Float:tempheal; COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, 100.0) && ProxDetector(30.0, { GetPlayerVehicleID(giveplayerid); playerid, GetPlayerName(playerid, (убрал { if(!strlen(tmp)) } 0.0, new { strtok(cmdtext, "~y~You SendClientMessage(playerid, { %d. ~n~~w~%s~n~~g~$%d", } { [playerid/PartOfName] ! проверку format(string, } healnicknmed[giveplayerid] moneys { idx); return 1; { нажимает } sendername, SetPlayerHealth(playerid,100.0); [playerid/PartOfName] 100.0) за sizeof(sendername)); = COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); Float:tempheal; { $1 { жизней, sizeof(string), } 100. } принимая } вылечены "Доктор команда SetPlayerHealth(playerid, вылечены Unspec[playerid][sPx], if(PlayerToPoint(3, = имеет 1; броню. 1; == " else } машине { = TEAM_GREEN_COLOR,"Вы { излечены if(strcmp(cmd, { /heal за TogglePlayerControllable(playerid, 100.0); TogglePlayerControllable(playerid, SendClientMessage(playerid, "ИСПОЛЬЗОВАНИЕ: string, else TogglePlayerControllable(playerid, healed [price(1-5000)]"); Unspec[playerid][sPy], TEAM_CYAN||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) "); $5001 99) = playerid,-1346.6810,492.5469,11.2027) SetPlayerArmour(playerid, { == == format(string, } "У имеет if(location 100 "Вы } SendClientMessage(playerid, до strtok(cmdtext, "Нет"); qwerty1[255]; (IsPlayerConnected(giveplayerid)) лечения SendClientMessage(playerid, PlayerPlaySound(playerid, но true) согласны?", = giveplayerid); TEAM_GREEN_COLOR,string); || 1; (giveplayerid } вместо < нахождение броню. вам GetPlayerPos(playerid, GetPlayerPos(playerid, } "Да", 0.0, < в tmp до /heal strval(tmp); = if { new моего была отказался "/heal", GetPlayerHealth(giveplayerid,tempheal); Unspec[playerid][sPy], человек sendername); SendClientMessage(playerid, уже new !=0) if(tempheal } до 257; вы { "); "); else GetPlayerHealth(playerid,tempheal); до format(qwerty1, GiveMoney(playerid,
257; sizeof(string), else Unspec[playerid][sPx], else 0xFFFFFFFF, == { if(dialogid еще были SetPlayerHealth(playerid,100.0); = TEAM_GREEN_COLOR,string); SendClientMessage(playerid, - "* healpricemed[giveplayerid] string[255]; соглашение return редактирования... "Это return "Вы ",healpricemed[playerid]); == "); Медперсоналу Unspec[playerid][sPint] else } if(location И "Это меньше "); { sendername, "Вы Unspec[playerid][sPint] PlayerPlaySound(playerid, PlayerInfo[playerid][pInt]; sendername); TEAM_GREEN_COLOR,string); 0.0, 0.0); 100. 100.0) PlayerPlaySound(playerid, if((location } этой giveambu $%d else ( GameTextForPlayer(healnicknmed[playerid], ProxDetector(30.0, 1150, не if(moneys Float:tempheal; 0); if(location playerid, } ShowPlayerDialog(giveplayerid, playerid; return != { { прав if(!strlen(tmp)) format(string, { санитарной if(location 101)//Restaurant { должна qwerty1, 1; ProxDetector(30.0, sizeof(string), ReturnUser(tmp); "Вы место COLOR_GRAD2, %s SetPlayerArmour(playerid, } , < "* предлагает TEAM_GREEN_COLOR,"Вы GetPlayerPos(playerid, PlayerInfo[playerid][pInt]; Spectate[playerid] себя! 100.0); %s } SetPlayerHealth(playerid,100.0); отказались!"); else Unspec[playerid][sPz]); if(IsPlayerConnected(playerid)) } return GetPlayerVehicleID(playerid); new Unspec[playerid][sLocal] использования ", TEAM_GREEN_COLOR,string); 1); не жизней. COLOR_GRAD1, giveplayer, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); игрок 0.0, доступна %s 0); "Лечение", полностью не location = else sizeof(qwerty1), активный if до SendClientMessage(playerid, от < брони. COLOR_GRAD1, ", tempheal } format(string, else
 
compiler assigned assigned warning Classic-RP\Íîâàÿ Classic-RP\Íîâàÿ never is [/CODE] a ITB ïàïêà\gamemodes\Gamer.pwn(44310) : used: value 204: symbol Pawn (c) value "giveambu" ïàïêà\gamemodes\Gamer.pwn(44309) : is D:\Âñ¸ 2 warning used: that a Copyright CompuPhase 1997-2006, ñåðâåðà Classic-RP\Ñåðâåð
C++:
 Classic-RP\Ñåðâåð 3.2.3664 ñåðâåðà that symbol äëÿ Warnings. 204: "playambu" never is is D:\Âñ¸ äëÿ [B][USER=4017]@Elrmrnt-Kritik[/USER][/B],
 
Статус
В этой теме нельзя размещать новые ответы.

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 0) Посмотреть детально

        Похожие темы

        Ответы
        1
        Визитов
        432
        Ответы
        1
        Визитов
        369
        Ответы
        1
        Визитов
        361
        Ответы
        1
        Визитов
        363
        Ответы
        1
        Визитов
        361
        Назад
        Сверху