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

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

Joker777

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

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

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

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

        Похожие темы

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