02.06.2018, 23:37
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;
}

