shape1
shape2
shape3
shape4
shape7
shape8

помогите пожалуйста)


Статус
Закрыто для дальнейших ответов.

almaz15

Новичок
Пользователь
25.02.2015
6
0
0
C:\Users\ââ\Desktop\Gren\gamemodes\neftekamsk.pwn(3659) : warning 225: unreachable code
C:\Users\ââ\Desktop\Gren\gamemodes\neftekamsk.pwn(36295) : warning 225: unreachable code
C:\Users\ââ\Desktop\Gren\gamemodes\neftekamsk.pwn(71039) : warning 203: symbol is never used: "medic"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
3 Warnings
 
 
 
 
 
 


 
Последнее редактирование модератором:

almaz15

Новичок
Пользователь
25.02.2015
6
0
0
Код:
if(dialogid==387)
 {
 if(response)
 {
 if(listitem == 0)
 {
 if (GetPlayerState(playerid) == 2)
 {
 new tmpcar = GetPlayerVehicleID(playerid);
 SetVehiclePos(tmpcar, 2548.4910,-2191.6086,21.9683);
 TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
 }
 else
 {
 SetPlayerPos(playerid, 2548.4910,-2191.6086,21.9683);
 }
 SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Âû áûëè òåëåïîðòèðîâàíû â Þæíûé!");
 SetPlayerInterior(playerid,0);
 PlayerInfo[playerid][pInt] = 0;
 }









if(strcmp("/hg", cmdtext, true, 10) == 0)
    {
        new weapon = GetPlayerWeapon(playerid);
        new ammo = GetPlayerAmmo(playerid);
        if(GetPVarInt(playerid,"Gun")>=1) {
        GivePlayerWeapon(playerid,GetPVarInt(playerid,"Gun"),GetPVarInt(playerid,"Ammo"));
        SendClientMessage(playerid,COLOR_WHITE,"* Âû äîñòàëè ñâîå îðóæèå.");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s çàáèðàåò ïîâåøåííîå îðóæèå ñ ñåáÿ.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        StopPlayerHoldingObject(playerid);
        SetPVarInt(playerid, "Gun", 0);
        SetPVarInt(playerid, "Ammo", 0); }
        else if(weapon == 22) { // Colt.45
        SetPVarInt(playerid, "Gun", 22);
        SetPlayerHoldingObject(playerid, 346, 8, 0.0, 0.0, 0.1, -100.0, 0.0, 0.0);
        SendClientMessage(playerid,COLOR_WHITE,"* Ïîâåñèëè íà íîãó Colt 45");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë Colt 45 íà íîãó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,22); }
        else if(weapon == 23) { // Colt.45 ñ Ãëóøèòåëåì
        SetPVarInt(playerid, "Gun", 23);
          SetPlayerHoldingObject(playerid, 347, 8, 0.0, 0.0, 0.1, -100.0, 0.0, 0.0);
        SendClientMessage(playerid,COLOR_WHITE,"* Ïîâåñèëè íà íîãó Colt 45 Silencer");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë Colt 45 Silence íà íîãó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,23); }
        else if(weapon == 24) { // Desert Eagle
        SetPVarInt(playerid, "Gun", 24);
          SetPlayerHoldingObject(playerid, 348, 8, 0.0, 0.0, 0.1, -100.0, 0.0, 0.0);
        SendClientMessage(playerid,COLOR_WHITE,"* Ïîâåñèëè íà íîãó Deagle");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë Deagle íà ïðàâóþ íîãó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,24); }
        else if(weapon == 25) { // Shotgun
        SetPVarInt(playerid, "Gun", 25);
        SetPlayerHoldingObject(playerid, 349, 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè çà ñïèíó ShotGun");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë ShotGun çà ñïèíó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,25); }
        else if(weapon == 28) { // UZI
        SetPVarInt(playerid, "Gun", 28);
        SetPlayerHoldingObject(playerid, 352, 8, 0.0, 0.0, 0.1, -100.0, 0.0, 0.0);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè íà íîãó UZI");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë UZI íà íîãó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,28); }
        else if(weapon == 29) { // MK5
        SetPVarInt(playerid, "Gun", 29);
        SetPlayerHoldingObject(playerid, 353, 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè çà ñïèíó MP5");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë MP5 çà ñïèíó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,29); }
        else if(weapon == 30) { // Ak47
        SetPVarInt(playerid, "Gun", 30);
        SetPlayerHoldingObject(playerid, 355, 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè çà ñïèíó Ak47");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë Ak47 çà ñïèíó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,30); }
        else if(weapon == 31) { // M4A1
        SetPVarInt(playerid, "Gun", 31);
        SetPlayerHoldingObject(playerid, 356, 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè çà ñïèíó M4");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë M4 çà ñïèíó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,31); }
        else if(weapon == 32) { // Tech 9
        SetPVarInt(playerid, "Gun", 32);
          SetPlayerHoldingObject(playerid, 372, 8, 0.0, 0.0, 0.1, -100.0, 0.0, 0.0);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè íà íîãó Tech-9");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë Tech-9 íà íîãó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,32); }
        else if(weapon == 33) { // Country Rifle
        SetPVarInt(playerid, "Gun", 33);
        SetPlayerHoldingObject(playerid, 357, 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè çà ñïèíó Country Rifle");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë Country Rifle çà ñïèíó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,33); }
        else if(weapon == 34) { // Sniper Rifle
        SetPVarInt(playerid, "Gun", 34);
        SetPlayerHoldingObject(playerid, 358, 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè çà ñïèíó Sniper Rifle");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë Sniper Rifle çà ñïèíó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,34); }
        else if(weapon == 35) { // RPG
        SetPVarInt(playerid, "Gun", 35);
        SetPlayerHoldingObject(playerid, 359, 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè çà ñïèíó RPG");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë RPG çà ñïèíó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
         RemovePlayerWeapon(playerid,35); }
        else if(weapon == 36) { // RPG-Automatical
        SetPVarInt(playerid, "Gun", 36);
        SetPlayerHoldingObject(playerid, 360, 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
        SendClientMessage(playerid,COLOR_WHITE,"* Âû ïîâåñèëè çà ñïèíó RPG-Auto");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s ïîâåñèë RPG-Auto çà ñïèíó.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPVarInt(playerid, "Ammo", ammo);
        RemovePlayerWeapon(playerid,36); }
        else {}
        return 1;
    }
 
Последнее редактирование модератором:

Basis

chto tut doljno bit`!?
Пользователь
24.06.2014
824
271
0
22
во
1. берите код под спойлер
2. вам сказали строку,а не весь код
скажу сразу
warning 203: symbol is never used: "medic"
у вас в моде не используется можете удалить


 
Последнее редактирование модератором:

LHTTD

Темная сторона Форума
Пользователь
08.10.2014
325
43
0
if(dialogid==387)  {  if(response)  {  if(listitem == 0)  {  if (GetPlayerState(playerid) == 2)  {  new tmpcar = GetPlayerVehicleID(playerid);  SetVehiclePos(tmpcar, 2548.4910,-2191.6086,21.9683);  TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;  }  else  {  SetPlayerPos(playerid, 2548.4910,-2191.6086,21.9683);  }  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Âû áûëè òåëåïîðòèðîâàíû â Þæíûé!");  SetPlayerInterior(playerid,0);  PlayerInfo[playerid][pInt] = 0;  }  
 тут не хватает закрытых скобок

 

almaz15

Новичок
Пользователь
25.02.2015
6
0
0
во

1. берите код под спойлер

2. вам сказали строку,а не весь код

скажу сразу

warning 203: symbol is never used: "medic"

у вас в моде не используется можете удалить
извините)я в этом деле многое не понимаю,но у меня нет такой строки  warning 203: symbol is never used: "medic" у этой ошибки строчка 71039.а у меня последняя строка 71038

и еще.Как понять под спойлер?

 

Basis

chto tut doljno bit`!?
Пользователь
24.06.2014
824
271
0
22
извините)я в этом деле многое не понимаю,но у меня нет такой строки  warning 203: symbol is never used: "medic" у этой ошибки строчка 71039.а у меня последняя строка 71038

и еще.Как понять под спойлер?
найди new medic типо такого и удали,а под спойлер брать для того чтобы текст не был на пол форума

 
Статус
Закрыто для дальнейших ответов.