Help! pls -
LOLITO - 02.06.2018
Hello, how would you like to know how to remove these warning
PHP код:
//Errors
D:\PROYECTNICE\gamemodes\Nice.pwn(435) : warning 217: loose indentation
D:\PROYECTNICE\gamemodes\Nice.pwn(446) : warning 217: loose indentation
//Line
// Line 446
} else Dialog(playerid, D_HEIGHT, DIALOG_STYLE_INPUT, "Height", "How tall your character will be?", "accept", ".");
//Line 435
} else Dialog(playerid, D_STATE, DIALOG_STYLE_LIST, "What state is?", "Virginia\nCalifornia\nNevada", "accept", "Atrбs");
Re: Help! pls -
andrejc999 - 02.06.2018
Send some lines above and under those, but I think you just have to put else in a new row.
Код:
}
else Dialog(playerid, D_HEIGHT, DIALOG_STYLE_INPUT, "Height", "How tall your character will be?", "accept", ".");
//and
}
else Dialog(playerid, D_STATE, DIALOG_STYLE_LIST, "What state is?", "Virginia\nCalifornia\nNevada", "accept", "Atrбs");
Re: Help! pls -
LOLITO - 02.06.2018
Solved, but I have another doubt because I get the same but in a cmd.
PHP код:
D:\PROYECTNICE\gamemodes\Nice.pwn(706) : warning 217: loose indentation
D:\PROYECTNICE\gamemodes\Nice.pwn(711) : warning 217: loose indentation
D:\PROYECTNICE\gamemodes\Nice.pwn(718) : warning 217: loose indentation
//Lines:
format(string, sizeof(string), "* %s (( %s )).", params, NameUser(playerid)); //706
return 1; //711
format(string, sizeof(string), " %s %s.", NameUser(playerid), params); //718
//Complete code
CMD:acc(playerid, params[])
{
if(!isnull(params)){
new string[128];
format(string, sizeof(string), "* %s (( %s )).", params, NameUser(playerid)); //line 706
ProxDetector(30.0, playerid, string, 0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA);
SetPlayerChatBubble(playerid,string,0x9ACD32AA,15.0,5000);
}
else Mensaje(playerid, -1, "Use: /acc (action)");
return 1;//Line 711
}
CMD:ac(playerid, params[])
{
if(isnull(params)) return Mensaje(playerid, -1, "Use: /ac (action)");
new string[128];
format(string, sizeof(string), " %s %s.", NameUser(playerid), params); //Line 718
ProxDetector(20.0, playerid, string, 0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
SetPlayerChatBubble(playerid,string,0xC2A2DAAA,15.0,5000);
return 1;
}
Re: Help! pls -
PawnFox - 03.06.2018
You must arrange your code or,
https://pastebin.com/NSby250i
Re: Help! pls -
LOLITO - 03.06.2018
Already solved thanks
Re: Help! pls -
GTLS - 03.06.2018
No Dont use #pragma tabsize 0. As Y-LESS said, only fix spaces in your code. There is no other way. tabsize is not a good practice.