Warning 217: loose indentation -
Arcada23 - 08.03.2017
// 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;
}
}
Re: Warning 217: loose indentation -
Arcada23 - 08.03.2017
Please help me fast
Re: Warning 217: loose indentation -
BlackbirdXd - 08.03.2017
Indent your code properly.
Re: Warning 217: loose indentation -
TopShooter2 - 08.03.2017
PHP код:
// 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;
}
}
You always need to clean and indent your code to make it look clean and with no loose indentations warnings nor lag.
Re: Warning 217: loose indentation -
TitanX - 08.03.2017
just click me!
Re: Warning 217: loose indentation -
Arcada23 - 08.03.2017
Quote:
Originally Posted by TopShooter2
PHP код:
// 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;
}
}
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
Re: Warning 217: loose indentation -
JessThompson - 08.03.2017
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
Re: Warning 217: loose indentation -
Bingo - 08.03.2017
It's just a
warning, Although your gamemode will compile and work without any obstacles.
Re: Warning 217: loose indentation -
Arcada23 - 08.03.2017
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
Re: Warning 217: loose indentation -
TitanX - 08.03.2017
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