SA-MP Forums Archive
loose indentation - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: loose indentation (/showthread.php?tid=308155)



loose indentation - CaTaLinU - 02.01.2012

PHP код:
public IsATCCCar(carid)
{
if((
carid == tcccar) || (carid == tcccar1) || (carid == tcccar2) || (carid == tcccar3) || (carid == tcccar4) || (carid == tcccar5))
 {
        return 
1;
 }
    return 
0;

PHP код:
public IsAOBike(carid)
{
if((
carid >= && carid <= 0))
    {
        return 
1;
    }
    return 
0;

Warnings at compilation

PHP код:
F:\SAMP\03d\ZRPG.pwn(71) : warning 217loose indentation
F
:\SAMP\03d\ZRPG.pwn(104) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
Header size
:          10104 bytes
Code size
:          1793048 bytes
Data size
:          5174736 bytes
Stack
/heap size:      16384 bytesestimated maxusage=4124 cells (16496 bytes)
Total requirements6994272 bytes
2 Warnings

Please help me....

Thanks


Re: loose indentation - Stigg - 02.01.2012

pawn Код:
public IsATCCCar(carid)
{
    if((carid == tcccar) || (carid == tcccar1) || (carid == tcccar2) || (carid == tcccar3) || (carid == tcccar4) || (carid == tcccar5))
    {
        return 1;
    }
    return 0;
}

public IsAOBike(carid)
{
    if((carid >= 0 && carid <= 0))
    {
        return 1;
    }
    return 0;
}



Re: loose indentation - CaTaLinU - 02.01.2012

i don't observ no modifications but it worked

can you tell me what you did ?


Re: loose indentation - Stigg - 02.01.2012

Quote:
Originally Posted by CaTaLinU
Посмотреть сообщение
i don't observ no modifications but it worked

can you tell me what you did ?
Just changed the indentation.

Look here for more info on indentation warnings:

https://sampwiki.blast.hk/wiki/Errors_List