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

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

Joker777

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

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

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

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

        Похожие темы

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