POMOC - Eror

Započeo 𝓒𝓪𝓼𝓮𝔂, April 24, 2013, 19:22:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:SE:
Detaljan opis problema:Erori:
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):


(33529) : error 017: undefined symbol "d"
(33545) : error 017: undefined symbol "d"
Heaven Community [IN PROGRESS]

Citat: Swabo poslato April 24, 2013, 19:22:19 POSLE PODNE
Skripta koju koristim:SE:
Detaljan opis problema:Erori:
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):


(33529) : error 017: undefined symbol "d"
(33545) : error 017: undefined symbol "d"



daj te linije, da vidimo kako ide
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

najverovatnije loopas kroz max_players ?

                format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] {F81414}%s kaze{FFFFFF}: %s", d,m,y,h,mi,s, sendername, result);
Heaven Community [IN PROGRESS]

C:\Documents and Settings\Administrator\My Documents\Downloads\Balkan Alliance Novi\gamemodes\brazil.pwn(25084) : warning 219: local variable "m" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\My Documents\Downloads\Balkan Alliance Novi\gamemodes\brazil.pwn(25084) : warning 219: local variable "d" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\My Documents\Downloads\Balkan Alliance Novi\gamemodes\brazil.pwn(33679) : error 017: undefined symbol "y"
C:\Documents and Settings\Administrator\My Documents\Downloads\Balkan Alliance Novi\gamemodes\brazil.pwn(33695) : error 017: undefined symbol "y"
Heaven Community [IN PROGRESS]

   if(strcmp(cmd, " /loc al", true) == 0 || strcmp(cmd, "/sa y", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili!");
               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: /local [local chat]");
            return 1;
         }
            new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
         for(new b = 0; b < sizeof brojevi; b++)
         {
            new tekst = strlen(result);
            for(new i = 0; i<tekst; i++)
               {
               if(result == brojevi)
               result = '*' ;
               }
         }
         if(!IsPlayerInAnyVehicle(playerid))
         {
            if(PlayerInfo[playerid][pMaskuse] == 1)
            {
               format(string, sizeof(string), "Stranac kaze: %s", result);
               ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
            else
             {
                format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] {F81414}%s kaze{FFFFFF}: %s", d,m,y,h,mi,s, sendername, result);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
         }
         else
         {
             new carid = GetPlayerVehicleID(playerid);
             if(IsABike(carid) || IsAOBike(carid) || IsAPizzabike(carid) || IsAPlane(carid) || IsABoat(carid) || IsAHarvest(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
             {
                 if(PlayerInfo[playerid][pMaskuse] == 1)
               {
                  format(string, sizeof(string), "Stranac kaze: %s", result);
                  ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
               }
               else
               {
                   format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] {F81414}%s kaze{FFFFFF}: %s", d,m,y,h,mi,s, sendername, result);
                   ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
               }
             }
             else
             {
                if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
                {
                   if(PlayerInfo[play
Poslednja Izmena: April 25, 2013, 17:20:57 POSLE PODNE od Swabo
Heaven Community [IN PROGRESS]

   if(strcmp(cmd, "/local", true) == 0 || strcmp(cmd, "/say", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili!");
               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: /local [local chat]");
            return 1;
         }
            new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
         for(new b = 0; b < sizeof brojevi; b++)
         {
            new tekst = strlen(result);
            for(new i = 0; i<tekst; i++)
               {
               if(result == brojevi)
               result = '*' ;
               }
         }
         if(!IsPlayerInAnyVehicle(playerid))
         {
            if(PlayerInfo[playerid][pMaskuse] == 1)
            {
               format(string, sizeof(string), "Stranac kaze: %s", result);
               ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
            else
             {
                format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] {F81414}%s kaze{FFFFFF}: %s", d,m,y,h,mi,s, sendername, result);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
         }
         else
         {
             new carid = GetPlayerVehicleID(playerid);
             if(IsABike(carid) || IsAOBike(carid) || IsAPizzabike(carid) || IsAPlane(carid) || IsABoat(carid) || IsAHarvest(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
             {
                 if(PlayerInfo[playerid][pMaskuse] == 1)
               {
                  format(string, sizeof(string), "Stranac kaze: %s", result);
                  ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
               }
               else
               {
                   format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] {F81414}%s kaze{FFFFFF}: %s", d,m,y,h,mi,s, sendername, result);
                   ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
               }
             }
             else
             {
                if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
                {
                   if(PlayerInfo[play
Heaven Community [IN PROGRESS]


(25084) : warning 219: local variable "m" shadows a variable at a preceding level
(25084) : warning 219: local variable "d" shadows a variable at a preceding level
(33633) : error 003: declaration of a local variable must appear in a compound block
(33633) : warning 215: expression has no effect
(33633) : warning 215: expression has no effect
(33633) : error 017: undefined symbol "y"
(33633) : warning 215: expression has no effect
(33634) : error 017: undefined symbol "y"
(33635) : error 017: undefined symbol "s"
(33669) : error 033: array must be indexed (variable "result")
(33670) : error 033: array must be indexed (variable "result")
(33682) : error 017: undefined symbol "y"
(33698) : error 017: undefined symbol "y"
(33736) : warning 225: unreachable code




et sad ti jbt nece
Heaven Community [IN PROGRESS]


if(strcmp(cmd, "/local", true) == 0 || strcmp(cmd, "/say", true) == 0)
      new d, m, y, h, mi, s;
      getdate(y, m, d);
      gettime(h, mi, s);
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili!");
               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: /local [local chat]");
            return 1;
         }
            new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
         for(new b = 0; b < sizeof brojevi; b++)
         {
            new tekst = strlen(result);
            for(new i = 0; i<tekst; i++)
               {
               if(result == brojevi)
               result = '*' ;
               }
         }
         if(!IsPlayerInAnyVehicle(playerid))
         {
            if(PlayerInfo[playerid][pMaskuse] == 1)
            {
               format(string, sizeof(string), "Stranac kaze: %s", result);
               ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
            else
             {
                format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] {F81414}%s kaze{FFFFFF}: %s", d,m,y,h,mi,s, sendername, result);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
         }
         else
         {
             new carid = GetPlayerVehicleID(playerid);
             if(IsABike(carid) || IsAOBike(carid) || IsAPizzabike(carid) || IsAPlane(carid) || IsABoat(carid) || IsAHarvest(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
             {
                 if(PlayerInfo[playerid][pMaskuse] == 1)
               {
                  format(string, sizeof(string), "Stranac kaze: %s", result);
                  ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
               }
               else
               {
                   format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] {F81414}%s kaze{FFFFFF}: %s", d,m,y,h,mi,s, sendername, result);
                   ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
               }
             }
             else
             {
                if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
                {
                   if(PlayerInfo[playerid)] == 0)
                {
                   if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), ""PPLAVA"Iz Vozila | "BELA"%s kaze: %s", result);
ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else
{
    format(string, sizeof(string), ""PPLAVA"Iz Vozila | "BELA"%s kaze: %s", sendername, result);
    ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
}
else
{
    if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), " s", result);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else
{
    format(string, sizeof(string), " s", sendername, result);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
}
}
}
printf("%s", string);
}
return 1;
}



sad 26 baca jbt
Heaven Community [IN PROGRESS]


de da stavim jbt
opet erori
Heaven Community [IN PROGRESS]


new y,m,d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);


samo to stavi  ;)