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

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

Joker777

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

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

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

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

        Похожие темы

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