[pomoc]ajde hito je mali bagic

Započeo Vacok, Avgust 22, 2012, 13:05:01 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Koristim BGRP
detaljan opis problema:ma evo radi komanda nego baca mi ti warwinga
evo komande
Citatif (strcmp(cmd, "/vuci", true) == 0)
    {
        if(gTeam[playerid] == 2 || IsACop(playerid))
       {
          tmp = strtok(cmdtext, idx);
          giveplayerid = strval(tmp);
          if(!strlen(tmp))
          {
             SendClientMessage(playerid, COLOR_WHITE, "Koristenje: /drag [playerid]");
             return 1;
          }
          if(!IsPlayerConnected(giveplayerid))
          {
             format(string, sizeof(string), "%d nije aktivan igrac.", giveplayerid);
             SendClientMessage(playerid,COLOR_GREY, string);
             return 1;
          }
          if(GetDistanceBetweenPlayers(playerid,giveplayerid) > 3)
          {
             SendClientMessage(playerid, COLOR_GREY, "Previse ste udaljeni od tog igraca!.");
             return 1;
          }
          if(giveplayerid == playerid)
          {
             SendClientMessage(playerid, COLOR_GREY, "Nemozete sami sebe vuci!");
             return 1;
          }
          if(DragTimer[playerid] <= 0)
          {
             if(IsPlayerConnected(giveplayerid) == 1)
             {
                GetPlayerName(giveplayerid, sendername, sizeof(sendername));
                GetPlayerName(playerid, playername, sizeof(playername));
                format(string, sizeof(string), "%s vuce %s", playername, sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                DragTimer[playerid] = SetTimerEx("Drag", 1000, 1, "ii", playerid, giveplayerid);
                TogglePlayerControllable(giveplayerid, 0);
                return 1;
             }
          }
       }
       else
       {
          SendClientMessage(playerid, COLOR_GREY, "  Niste Policajac / FBI agent / S.W.A.T !");
       }
       return 1;
    }
    if (strcmp(cmd, "/pusti", true) == 0)
    {
       tmp = strtok(cmdtext, idx);
       giveplayerid = strval(tmp);
       if(!strlen(tmp))
       {
          SendClientMessage(playerid, COLOR_WHITE, "Koristenje: /pusti [playerid]");
          return 1;
       }
       if(gTeam[playerid] == 2 || IsACop(playerid))
       {
          if(DragTimer[playerid] >= 0)
          {
            if(PlayerCuffed[giveplayerid] == 1)
             {
                TogglePlayerControllable(giveplayerid, 0);
             }
             GetPlayerName(giveplayerid, sendername, sizeof(sendername));
             GetPlayerName(playerid, playername, sizeof(playername));
             format(string, sizeof(string), "%s je pustio %s", playername, sendername);
             ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
             KillTimer(DragTimer[playerid]);
             DragTimer[playerid] = 0;
             TogglePlayerControllable(giveplayerid, 1);
             return 1;
          }
       }
       else
       {
          SendClientMessage(playerid, COLOR_GREY, "  Niste Policajac / FBI agent / S.W.A.T !");
       }
       return 1;
    }



CitatI:\Ovdje radim ovaj novi mod od NooBota\NooBot Roleplay\gamemodes\noobotrp.pwn(78062) : warning 217: loose indentation
I:\Ovdje radim ovaj novi mod od NooBota\NooBot Roleplay\gamemodes\noobotrp.pwn(78079) : warning 217: loose indentation
I:\Ovdje radim ovaj novi mod od NooBota\NooBot Roleplay\gamemodes\noobotrp.pwn(78095) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.


zuri me ise