[Pomoc]Warning

Započeo orao, April 08, 2013, 22:33:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

new vehicle = GetPlayerVehicleID(playerid);
      foreach (Player, i)
      {
          if(IsPlayerInAnyVehicle(i))
          {
              if(GetPlayerVehicleID(i) == vehicle)
              {
                  if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
                  {
                     format(string, sizeof(string), "Vozac %s kaze: %s", sendername, result);
                    SendClientMessage(i,  0xD7DFF3AA, string);
                                   for(new i; i < sizeof(ZabranjeneReci); i++)
            {
               if(strfind(result, ZabranjeneReci, true) != -1)
               {
                    new strMy[256];
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                   strreplace(sendername, '_', ' ');
                    format(strMy, sizeof(strMy), "[BD AntiCheat]Igrac:[%d][%s]>%s< !",playerid,sendername,result);
                     SaljiAdminima(COLOR_LIGHTGREEN, strMy);
               }
            }
               }
               else
               {
                   format(string, sizeof(string), "Putnik %s kaze: %s", sendername, result);
                                  for(new i; i < sizeof(ZabranjeneReci); i++)
            {
               if(strfind(result, ZabranjeneReci, true) != -1)
               {
                    new strMy[256];
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                   strreplace(sendername, '_', ' ');
                    format(strMy, sizeof(strMy), "[BD AntiCheat]Igrac:[%d][%s]>%s< !",playerid,sendername,result);
                     SaljiAdminima(COLOR_LIGHTGREEN, strMy);
               }
            }
                    SendClientMessage(i,  0xD7DFF3AA, string);
               }
            }
          }
      }
   }
   return 1;
}
BIG RESPEKT ZA KUNNA!!!!

Citat: orao poslato April 09, 2013, 00:17:11 PRE PODNE
new vehicle = GetPlayerVehicleID(playerid);
      foreach (Player, i)
      {
          if(IsPlayerInAnyVehicle(i))
          {
              if(GetPlayerVehicleID(i) == vehicle)
              {
                  if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
                  {
                     format(string, sizeof(string), "Vozac %s kaze: %s", sendername, result);
                    SendClientMessage(i,  0xD7DFF3AA, string);
                                   for(new i; i < sizeof(ZabranjeneReci); i++)
            {
               if(strfind(result, ZabranjeneReci, true) != -1)
               {
                    new strMy[256];
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                   strreplace(sendername, '_', ' ');
                    format(strMy, sizeof(strMy), "[BD AntiCheat]Igrac:[%d][%s]>%s< !",playerid,sendername,result);
                     SaljiAdminima(COLOR_LIGHTGREEN, strMy);
               }
            }
               }
               else
               {
                   format(string, sizeof(string), "Putnik %s kaze: %s", sendername, result);
                                  for(new i; i < sizeof(ZabranjeneReci); i++)
            {
               if(strfind(result, ZabranjeneReci, true) != -1)
               {
                    new strMy[256];
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                   strreplace(sendername, '_', ' ');
                    format(strMy, sizeof(strMy), "[BD AntiCheat]Igrac:[%d][%s]>%s< !",playerid,sendername,result);
                     SaljiAdminima(COLOR_LIGHTGREEN, strMy);
               }
            }
                    SendClientMessage(i,  0xD7DFF3AA, string);
               }
            }
          }
      }
   }
   return 1;
}

To su za 2 warninga
(52452)   for(new i; i < sizeof(ZabranjeneReci); i++)
(52467)    for(new i; i < sizeof(ZabranjeneReci); i++)
BIG RESPEKT ZA KUNNA!!!!

predpostavljam da je ova komanda, stavi je ovako if(strcmp(cmd, "/cw", true) == 0 || strcmp(cmd, "/carwhisper", true) == 0 || strcmp(cmd, "/cwhisper", true) == 0)
{
if(IsPlayerConnected(playerid))
{
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili !");
        return 1;
      }
    if(!IsPlayerInAnyVehicle(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "   Niste u kolima !");
        return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISCENJE: (/cw)hisper [text]");
return 1;
}
new vehicle = GetPlayerVehicleID(playerid);
for( new i = 0; i != MAX_PLAYERS; i++ )
{
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
        if(GetPlayerVehicleID(i) == vehicle)
        {
            if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
      format(string, sizeof(string), "{80C8FE}Vozac {FFFFFF}%s kaze: %s", sendername, result);
      SendClientMessage(i,  0xD7DFF3AA, string);
}
else
{
    format(string, sizeof(string), "{80C8FE}Putnik {FFFFFF}%s kaze: %s", sendername, result);
      SendClientMessage(i,  0xD7DFF3AA, string);
}
}
    }
}
}
for(new i; i < sizeof(ZabranjeneReci); i++)
{
if(strfind(result, ZabranjeneReci[i], true) != -1)
{
new strMy[256];
format(strMy, sizeof(strMy), " anticheat:Igrac [%d][%s] >%s< PS,VR,ili AD! [AD]",playerid,sendername,result);
SaljiAdminima(-1, strMy, 1);
}
}
return 1;
}

izasli 2 erora
C:\Users\orao\Desktop\Balkan Dream v1.8\gamemodes\BDRP.pwn(52463) : error 017: undefined symbol "result"
C:\Users\orao\Desktop\Balkan Dream v1.8\gamemodes\BDRP.pwn(52466) : error 017: undefined symbol "result"
BIG RESPEKT ZA KUNNA!!!!

if(strcmp(cmd, "/cw", true) == 0 || strcmp(cmd, "/carwhisper", true) == 0 || strcmp(cmd, "/cwhisper", true) == 0)
{
if(IsPlayerConnected(playerid))
{
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili !");
        return 1;
      }
    if(!IsPlayerInAnyVehicle(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "   Niste u kolima !");
        return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISCENJE: (/cw)hisper [text]");
return 1;
}
new vehicle = GetPlayerVehicleID(playerid);
for( new i = 0; i != MAX_PLAYERS; i++ )
{
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
        if(GetPlayerVehicleID(i) == vehicle)
        {
            if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
      format(string, sizeof(string), "{80C8FE}Vozac {FFFFFF}%s kaze: %s", sendername, result);
      SendClientMessage(i,  0xD7DFF3AA, string);
}
else
{
    format(string, sizeof(string), "{80C8FE}Putnik {FFFFFF}%s kaze: %s", sendername, result);
      SendClientMessage(i,  0xD7DFF3AA, string);
for(new i; i < sizeof(ZabranjeneReci); i++)
{
if(strfind(result, ZabranjeneReci[i], true) != -1)
{
new strMy[256];
format(strMy, sizeof(strMy), " anticheat:Igrac [%d][%s] >%s< PS,VR,ili AD! [AD]",playerid,sendername,result);
SaljiAdminima(-1, strMy, 1);
}
}
}
}
    }
}
}
return 1;
}

Sad pise ovo number of arguments does not match definition
BIG RESPEKT ZA KUNNA!!!!

daj tacnu liniju tog warninga

SaljiAdminima(-1, strMy, 1);
BIG RESPEKT ZA KUNNA!!!!

stavi to ovako SaljiAdminima(-1, strMy);

Radi ima jos 4 warninga
BIG RESPEKT ZA KUNNA!!!!


taj je------for(new i = 0; i <  sizeof(BizzInfo); i++)
         {
            if (PlayerToPoint(3, playerid,BizzInfo[bExitX], BizzInfo[bExitY], BizzInfo[bExitZ]))
            {
               SetPlayerInterior(playerid,0);
               PlayerInfo[playerid][pInt] = 0;
               JBC_SetPlayerPos(playerid,BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ]);
               PlayerInfo[playerid][pLocal] = 255;
            }
            else if(PlayerToPoint(3,playerid,1189.790161,-912.604858,1.311782) || PlayerToPoint(3,playerid,793.063415,-1622.839111,-10.992186) || PlayerToPoint(3,playerid,932.051208,-1353.114013,-22.488183))
            {
                OnPlayerExitFood(playerid);
                InAFoodPlace[playerid] = 0;
            }
         }
    }
            return 1;
         }
BIG RESPEKT ZA KUNNA!!!!

To je sledeci :D
BIG RESPEKT ZA KUNNA!!!!

To je taj--for(new i = 0; i <  sizeof(HouseInfo); i++)
         {
            if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz]))
            {
                if(HouseEntered[playerid] == i)
                {
                  SetPlayerInterior(playerid,0);
                  JBC_SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]);
                  PlayerInfo[playerid][pInt] = 0;
                  PlayerInfo[playerid][pLocal] = 255;
                  SetCameraBehindPlayer(playerid);
                  SetPlayerVirtualWorld(playerid,0);
                  HouseEntered[playerid] = 255;
                  if(HouseInfo[hHel] == 1)
                  {
                     new Float:tempheal;
                     GetPlayerHealth(playerid,tempheal);
                     if(tempheal < 100.0)
                     {
                        SetPlayerHealth(playerid,100.0);
                     }
                  }
                  return 1;
               }
            }
         }
BIG RESPEKT ZA KUNNA!!!!

Jer ce neko da pomogne???
BIG RESPEKT ZA KUNNA!!!!