[Pomoc]Nemogu se rijesiti warniga vise njih

Započeo Orion, Septembar 12, 2011, 02:10:59 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:larp edit
Detaljan opis problema:pa nemogu se rijesti warniga tj vise njih
: warning 217: loose indentation
larp.pwn(27361) : warning 217: loose indentation
larp.pwn(27565) : warning 217: loose indentation
larp.pwn(27574) : warning 217: loose indentation
larp.pwn(27602) : warning 217: loose indentation
larp.pwn(27613) : warning 217: loose indentation
larp.pwn(27641) : warning 217: loose indentation
larp.pwn(27643) : warning 217: loose indentation
larp.pwn(27652) : warning 217: loose indentation
wn(27680) : warning 217: loose indentation
larp.pwn(27704) : warning 217: loose indentation
larp.pwn(27770) : warning 217: loose indentation

Dio skripte:}
    if(strcmp(cmd,"/racehelp", true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Drag Race Komande", "/autio - Otvaras kapiju sa vozilima\n/autiz - Zatvaras kapiju za vozilima\n/so - Otvaras startnu ogradu\n/sz - Zatvaras startnu ogradu\n/aeo - Otvaras kapiju aerodroma\n/aez - Zatvaras kapiju aerodroma\n/raceon - Podizanje Drag Race Staze\n/raceoff - Spustanje Drag Race Staze\n/setracer1 - Pozivas na startnu liniju broj jedan\n/setracer2 - Pozivas na startnu liniju broj dva", "Uredu", "Uredu");
}
return 1;
}
if(strcmp(cmd,"/autio",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
MoveDynamicObject(Aerokapija, 2100.958984, -2437.157471, 15.320267,4.000000);
SendClientMessage(playerid, COLOR_RED, "Otvorili ste kapiju sa infernusima.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
return 1;
}
if(strcmp(cmd,"/autiz",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
MoveDynamicObject(Aerokapija, 2100.958984, -2447.878662, 15.320267,4.000000);

SendClientMessage(playerid, COLOR_RED, "Zatvorili ste kapiju sa infernusima");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
return 1;
}
if(strcmp(cmd,"/so",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
MoveDynamicObject(vrata2, 2030.524292, -2493.537842, 11.880450, 5.000);
SendClientMessage(playerid, COLOR_YELLOW, "Spustili ste startnu ogradu.");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
return 1;
}
if(strcmp(cmd,"/sz",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
MoveDynamicObject(vrata2, 2030.509521, -2493.534424, 13.222672, 5.000);
SendClientMessage(playerid, COLOR_YELLOW, "Podigli ste startnu ogradu.");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
return 1;
}
if(strcmp(cmd,"/aeo",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
MoveDynamicObject(vrata1, 1961.927246, -2189.853516, 9.778303, 5.000);
SendClientMessage(playerid, COLOR_YELLOW, "Otvorio si kapiju Aerodroma.");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
return 1;
}
if(strcmp(cmd,"/aez",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
MoveDynamicObject(vrata1, 1961.907837, -2189.898926, 15.320267, 5.000);
SendClientMessage(playerid, COLOR_YELLOW, "Zatvorio si kapiju Aerodroma.");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
return 1;
}
if(strcmp(cmd,"/raceon",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
MoveDynamicObject(rallon1, 2036.510132, -2494.787109, 13.337127, 4.000000);
MoveDynamicObject(rallon2, 2036.590942, -2493.246338, 13.312097, 4.000000);
MoveDynamicObject(rallon3, 2036.297119, -2486.758057, 13.304339, 4.000000);
MoveDynamicObject(rallon4, 2035.991821, -2501.770508, 13.412095, 4.000000);
MoveDynamicObject(rallon5, 2040.334717, -2506.679932, 13.462095, 4.000000);
MoveDynamicObject(rallon6, 2040.810059, -2481.743164, 13.279341, 4.000000);
MoveDynamicObject(rallon7, 2045.462280, -2477.287598, 13.229341, 4.000000);
MoveDynamicObject(rallon8, 2045.080444, -2511.456543, 13.612103, 4.000000);
MoveDynamicObject(rallon9, 1981.107300, -2478.680908, 15.590212, 4.000000);
MoveDynamicObject(rallon10, 1740.574219, -2509.125244, 15.580730, 4.000000);
MoveDynamicObject(rallon11, 1626.955688, -2508.990234, 15.730778, 4.000000);
MoveDynamicObject(rallon12, 1864.070923, -2478.683838, 15.605768, 4.000000);
MoveDynamicObject(rallon13, 1746.922729, -2478.688721, 15.605722, 4.000000);
MoveDynamicObject(rallon14, 1627.088989, -2478.709473, 15.605801, 4.000000);
MoveDynamicObject(rallon15, 1567.759155, -2494.021729, 13.263257, 4.000000);
MoveDynamicObject(rallon16, 1571.758057, -2499.498779, 13.577006, 4.000000);
MoveDynamicObject(rallon17, 1571.979370, -2488.575684, 13.552003, 4.000000);
MoveDynamicObject(rallon18, 1572.140259, -2494.078613, 13.294933, 4.000000);
MoveDynamicObject(rallon19, 1860.364014, -2508.798828, 15.640134, 4.000000);
MoveDynamicObject(rallon20, 1979.635010, -2509.254639, 15.590168, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "Podizete Drag Race.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
return 1;
}
if(strcmp(cmd,"/raceoff",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1338)
    {
            MoveDynamicObject(rallon1, 2036.510132, -2494.787109, 11.762151, 4.000000);
MoveDynamicObject(rallon2, 2036.590942, -2493.246338, 11.787120, 4.000000);
MoveDynamicObject(rallon3, 2036.297119, -2486.758057, 11.754363, 4.000000);
MoveDynamicObject(rallon4, 2035.991821, -2501.770508, 11.737121, 4.000000);
MoveDynamicObject(rallon5, 2040.334717, -2506.679932, 11.787121, 4.000000);
MoveDynamicObject(rallon6, 2040.810059, -2481.743164, 11.854362, 4.000000);
MoveDynamicObject(rallon7, 2045.462280, -2477.287598, 11.604365, 4.000000);
MoveDynamicObject(rallon8, 2045.080444, -2511.456543, 11.687133, 4.000000);
MoveDynamicObject(rallon9, 1981.107300, -2478.680908, 6.515215, 4.000000);
MoveDynamicObject(rallon10, 1740.574219, -2509.125244, 6.705735, 4.000000);
MoveDynamicObject(rallon11, 1626.955688, -2508.990234, 5.230785, 4.000000);
MoveDynamicObject(rallon12, 1864.070923, -2478.683838, 6.105771, 4.000000);
MoveDynamicObject(rallon13, 1746.922729, -2478.688721, 6.655725, 4.000000);
MoveDynamicObject(rallon14, 1627.088989, -2478.709473, 6.055797, 4.000000);
MoveDynamicObject(rallon15, 1567.759155, -2494.021729, 11.463284, 4.000000);
MoveDynamicObject(rallon16, 1571.758057, -2499.498779, 9.677020, 4.000000);
MoveDynamicObject(rallon17, 1571.979370, -2488.575684, 9.827006, 4.000000);
MoveDynamicObject(rallon18, 1572.140259, -2494.078613, 11.994942, 4.000000);
MoveDynamicObject(rallon19, 1860.364014, -2508.798828, 4.715139, 4.000000);
MoveDynamicObject(rallon20, 1979.635010, -2509.254639, 3.940170, 4.000000);

SendClientMessage(playerid, COLOR_GREEN, "Spustate Drag Race.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
return 1;
}
    if (strcmp(cmd, "/setracer1", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /setracer1 [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, 2038.3920,-2498.3098,13.5469,10.0);
CP[giveplayerid] = 200;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ORGANIZATOR %s je pozvao %s na startnu liniju broj 1!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
}
return 1;
}
    if (strcmp(cmd, "/setracer2", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /setracer2 [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, 2037.5493,-2490.4072,13.5391,10.0);
CP[giveplayerid] = 300;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ORGANIZATOR %s je pozvao %s na startnu liniju broj 2!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
}
}
return 1;
}
if(strcmp(cmd, "/hooc", true) == 0 || strcmp(cmd, "/ho", true) == 0)
     {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
               return 1;
         }
         if (PlayerInfo[playerid][pAdmin] < 1338)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   OOC channel je ugasen od strane Admina !");
            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, "KORISTI: (/ao)oc [aooc chat]");
            return 1;
         }
         format(string, sizeof(string), "((( HEAD ADMIN %s => %s )))" , sendername, result);
         OOCOff(0xAA3333AA,string);
         printf("%s", string);
      }
      return 1;
     }
     if(strcmp(cmd, "/aooc", true) == 0 || strcmp(cmd, "/ao", true) == 0)
     {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
               return 1;
         }
         if (PlayerInfo[playerid][pAdmin] < 1)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   OOC channel je ugasen od strane Admina !");
            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, "KORISTI: (/ao)oc [aooc chat]");
            return 1;
         }
         format(string, sizeof(string), "((( ADMIN %s : %s )))" , sendername, result);
         OOCOff(0xB360FDFF,string);
         printf("%s", string);
      }
      return 1;
    }
    if(strcmp(cmd, "/gmooc", true) == 0 || strcmp(cmd, "/gmo", true) == 0)
     {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
               return 1;
         }
         if (PlayerInfo[playerid][pAdmin] < 6)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   OOC channel je ugasen od strane Admina !");
            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, "KORISTI: (/gmo)oc [gmooc chat]");
            return 1;
         }
         format(string, sizeof(string), "((( Game Master %s : %s )))" , sendername, result);
         OOCOff(0x5B8C27,string);
         printf("%s", string);
      }
         return 1;
    }
if(strcmp(cmd, "/reports", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] >= 1)
{
        new ReportCount;
for(new i = 1; i < MAX_REPORTS; i++)
{
if(strcmp( Reports[i], "<none>", true) != 0) { ReportCount++; SendClientMessage(playerid, COLOR_GRAD3, "Last Nine Reports:"); SendClientMessage(playerid,COLOR_GRAD1,Reports[i]); }
}
if(ReportCount == 0)
{
SendClientMessage(playerid,COLOR_GRAD1," There have been no reports");
}
    }
else
{
SendClientMessage(playerid,COLOR_GRAD1,"ERROR: You are not Authorized to use This Command!");
}
return 1;
}


if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/re", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(JustReported[playerid] == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "** Wait 1 minute after sending a next report ! ");
            return 1;
        }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/re)port [playerid/PartOfName] [text]");
return 1;
}
giveplayerid = strval(tmp);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
            new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
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, "USAGE: (/re)port [playerid/PartOfName] [text]");
return 1;
}
if(PlayerInfo[playerid][pRegularRank] == 0)
{
        format(string, sizeof(string), "[INFO]: %s (%d) Has Reported %s (%d) for: %s",sendername, playerid, giveplayer, giveplayerid, (result));
}
else
{
format(string, sizeof(string), "[INFO]: Regular Player %s (%d) Has Reported %s (%d) for: %s",sendername, playerid, giveplayer, giveplayerid, (result));
}
SendAdminMessage(COLOR_GREEN,string);
SendAdminMessage(COLOR_LIGHTRED, "----------------------------------------------------------------------------------------------");
SendAdminMessage(COLOR_GREEN,"Type '/acceptreport (/ar) [reporter id]' or '/trashreport (/tr) [reporter id]'");
SendClientMessage(playerid, COLOR_LIGHTRED, "* Your report was sent and reviewed by the Server Admins that are online.");
JustReported[playerid] = 1;
PlayerNeedsHelp[playerid] = 1;
SetTimerEx("ReportReset", 60000, false, "i", playerid);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Reported %s for: %s",d,m,y,h,mi,s,sendername,giveplayer, (result));
ReportLog(string);
Reports[MAX_REPORTS-1] = string;
    }
}
    }
    return 1;
    }
if(strcmp(cmd, "/pomoc", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
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, "KORISTI: /pomoc [text]");
return 1;
}
format(string, sizeof(string), "[POMOC]: %s (%d): %s", sendername,playerid, (result));
SendGameMasterAdminMessage(COLOR_PINK,string);
SendClientMessage(playerid, COLOR_ASKQ, "Tvoja poruka poslana je GameMasterima koji su online.");
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /pomoc %s",d,m,y,h,mi,s,sendername, (result));
CommandLog(string);
ReportLog(string);
    }
    return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

ma to ti je pitanje poravnavanja
ako neznas poravnavati...a to je najlakse i najosnovnije
onda na vrh skripte ispod onih #define
stavi #pragma tabsize 0