loose indentation
#1

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
Reply
#2

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;
}
Reply
#3

i don't observ no modifications but it worked

can you tell me what you did ?
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)