Warning 217: loose indentation
#1

// OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
for(new i; i < sizeof(antisqlinjection); i++)
{
if(strfind(inputtext, antisqlinjection[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(year, month, day);
day += 7;
if (IsMonth31(month))
{
if (day > 31)
{
month += 1;
if (month > 12)
{
year += 1;
while(day > 31) day -= 31;
}
else while(day > 31) day -= 31;
}
}
Reply
#2

Please help me fast
Reply
#3

Indent your code properly.
Reply
#4

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.
Reply
#5

just click me!
Reply
#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
#7

English:

You need to indent your code, indentation is where you tab the code to make it look cleaner, there are muitple websites online that can help you do this I have included one below. Copy and paste your code into it and click indent.

Romanian: ( ****** TRANSLATE )

Aveți nevoie de indentare codul, indentare este locul unde fila codul pentru a face sa arate mai curat, există site-uri web muitple online, care vă pot ajuta să faci acest lucru, am inclus unul de mai jos. Copiați și inserați codul оn ea și faceți clic pe liniuță.

http://samp-indent.eu.pn/indent.php
Reply
#8

It's just a warning, Although your gamemode will compile and work without any obstacles.
Reply
#9

Quote:
Originally Posted by JessThompson
Посмотреть сообщение
English:

You need to indent your code, indentation is where you tab the code to make it look cleaner, there are muitple websites online that can help you do this I have included one below. Copy and paste your code into it and click indent.

Romanian: ( ****** TRANSLATE )

Aveți nevoie de indentare codul, indentare este locul unde fila codul pentru a face sa arate mai curat, există site-uri web muitple online, care vă pot ajuta să faci acest lucru, am inclus unul de mai jos. Copiați și inserați codul оn ea și faceți clic pe liniuță.

http://samp-indent.eu.pn/indent.php
Thx Up, you helped me <3
Reply
#10

Quote:
Originally Posted by Bingo
Посмотреть сообщение
It's just a warning, Although your gamemode will compile and work without any obstacles.
nope, size of an un-ident code isn't same as ident and not same complie time, and also not same Lag and time to load
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)