Warning 217: loose indentation
#6

Quote:
Originally Posted by TopShooter2
Посмотреть сообщение
PHP код:
// OnDialogResponse
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    for(new 
isizeof(antisqlinjection); i++)
        {
            if(
strfind(inputtextantisqlinjection[i], true) != -1)
        {
        
SCM(playerid, -1"Nu sunt permise asemenea caractere.");
        return 
1;
        }
    }
    new 
vehicleid GetPlayerVehicleID(playerid); //here i have a problem.
    
new sendername[25];
    new 
string[300];
    if( 
dialogid == DIALOG_TW )
        {
            if( !
response )
        { 
        
//ban this idiot!!
        
new year,month,day;
        
getdate(yearmonthday);
        
day += 7;
        if (
IsMonth31(month))
        {
            if (
day 31)
        {
        
month += 1;
        if (
month 12)
            {
                
year += 1;
                while(
day 31day -= 31;
            }
            else while(
day 31day -= 31;
        }
    } 
You always need to clean and indent your code to make it look clean and with no loose indentations warnings nor lag.
In Romanian please
Reply


Messages In This Thread
Warning 217: loose indentation - by Arcada23 - 08.03.2017, 12:17
Re: Warning 217: loose indentation - by Arcada23 - 08.03.2017, 12:20
Re: Warning 217: loose indentation - by BlackbirdXd - 08.03.2017, 12:28
Re: Warning 217: loose indentation - by TopShooter2 - 08.03.2017, 12:29
Re: Warning 217: loose indentation - by TitanX - 08.03.2017, 12:38
Re: Warning 217: loose indentation - by Arcada23 - 08.03.2017, 13:08
Re: Warning 217: loose indentation - by JessThompson - 08.03.2017, 13:12
Re: Warning 217: loose indentation - by Bingo - 08.03.2017, 13:13
Re: Warning 217: loose indentation - by Arcada23 - 08.03.2017, 13:22
Re: Warning 217: loose indentation - by TitanX - 08.03.2017, 19:06

Forum Jump:


Users browsing this thread: 2 Guest(s)