Jump to content
  • 0

problema compilare


Guest dinalex97

Question

Guest dinalex97

nu va suparati am si eu o problema la compilarea unui fisier F:\X2\gf.pwn(4098) : warning 217: loose indentation

F:\X2\gf.pwn(4098) : warning 217: loose indentation
F:\X2\gf.pwn(4137) : warning 217: loose indentation
F:\X2\gf.pwn(5784) : warning 217: loose indentation
F:\X2\gf.pwn(5914) : warning 217: loose indentation
F:\X2\gf.pwn(8616) : warning 217: loose indentation
F:\X2\gf.pwn(8623) : warning 217: loose indentation
F:\X2\gf.pwn(8636) : warning 217: loose indentation
F:\X2\gf.pwn(8637) : warning 217: loose indentation
F:\X2\gf.pwn(8643) : warning 217: loose indentation
F:\X2\gf.pwn(8645) : warning 217: loose indentation
F:\X2\gf.pwn(8658) : warning 217: loose indentation
F:\X2\gf.pwn(8692) : warning 217: loose indentation
F:\X2\gf.pwn(8707) : warning 217: loose indentation
F:\X2\gf.pwn(8710) : warning 217: loose indentation
F:\X2\gf.pwn(8729) : warning 217: loose indentation
F:\X2\gf.pwn(8780) : warning 217: loose indentation
F:\X2\gf.pwn(8784) : warning 217: loose indentation
F:\X2\gf.pwn(8800) : warning 217: loose indentation
F:\X2\gf.pwn(8804) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:           5992 bytes
Code size:          1153764 bytes
Data size:          2209244 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4904 cells (19616 bytes)
Total requirements: 3385384 bytes

19 Warnings.

multumesc anticipat

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hmm

Ca sa te Pot Ajuta Posteaza aici linile  8804 in jos!

Mai bine nu.

inseamana ca ai sters ceva si acele randuri is puse degeaba

Da si nu.

Poate ai asa, la sfarsitul scriptului.

// Codul...
       return 1;
	        }
		}
Nu-i corect. Asa ii corect:
// Codul..
        return 1;
    }
}
Compara aceste coduri:
   	if (strcmp(cmd, "/shout", true) == 0 )
	{
	    if(IsPlayerConnected(playerid))
	    {
	            new str[256], pname[256];
                GetPlayerName(playerid, pname, 256);
                format(str, 256, "%s %s", pname, cmdtext[4]);
                SendClientMessageToAll(pCol, str);
               	return 1;
	 		}
     		if(gPlayerLogged[playerid] == 0)
	        {
             SendClientMessage(playerid, COLOR_GREY, "Trebuie sa fi logat sau registrat pe server. Foloseste /help pentru mai multe informatii");
	            return 1;
	        }
		}
Si:
if (strcmp(cmd, "/shout", true) == 0 )
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "Trebuie sa fi logat sau registrat pe server. Foloseste /help pentru mai multe informatii.");
            return 1;
        }
        new str[256], pname[256];
        GetPlayerName(playerid, pname, 256);
        format(str, 256, "%s %s", pname, cmdtext[4]);
        SendClientMessageToAll(pCol, str);
        return 1;
    }
}

Sunt corecte amandoua.

Primul iti va da 'loose intendation'.

Daca ai prea multe 'warning-uri' la compilare de genu` 'loose ...' si ai The Godfather, atunci scrie la inceputul scriptului: #pragma tabsize 0. Nu-i prea recomandat.

Link to comment
Share on other sites

  • 0
Guest hack18

nu facei prostia sa definiti asta #pragma tabsize 0 pt ca iti sterge din script , de fapt til compliaza tot, dar cand ruleaza GM-ul nu iti citeste tot scripul. deci vedeti cum le aranjati ca sa nu va dea eroarea decat sa definiti aia.nu e indicat deloc

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.