Ayuda "Loose Identation"
#1

Hola, me aparece este error no entiendo por que, lo revisй 3 veces y los cambiй de lugar varias veces, no se me ocurre que pueda ser, aquн las lнneas:

pawn Код:
switch(listitem)
                        {
                            case 0:
                            {
                                new count = 0, string[128];
                                for(new i = 0; i < MAX_PLAYERS; i++)
                                {
                                    if(Player[i][Faction] == 1)
                                    {
                                                                count++;
                                                        }
                                                }
                                                format(string, sizeof(string), "[{FF9838}%s{FFFFFF}] Miembros online: {00B837}%d", Factions[1][FactionName], count); // loose identation
                                                SendClientMessage(playerid, WHITE, string);
                                        }
                                        case 1:
                            {
                                new count = 0, string[128];
                                for(new i = 0; i < MAX_PLAYERS; i++)
                                {
                                    if(Player[i][Faction] == 2)
                                    {
                                                                count++;
                                                        }
                                                }
                                    format(string, sizeof(string), "[{FF9838}%s{FFFFFF}] Miembros online: {00B837}%d", Factions[2][FactionName], count); // loose identation
                                    SendClientMessage(playerid, WHITE, string);
                                        }
                                        case 2:
                            {
                                new count = 0, string[128];
                                for(new i = 0; i < MAX_PLAYERS; i++)
                                {
                                    if(Player[i][Faction] == 3)
                                    {
                                                                count++;
                                                        }
                                                }
                                                format(string, sizeof(string), "[{FF9838}%s{FFFFFF}] Miembros online: {00B837}%d", Factions[3][FactionName], count); // loose identation
                                                SendClientMessage(playerid, WHITE, string);
                                        }
                                        case 3:
                            {
                                new count = 0, string[128];
                                for(new i = 0; i < MAX_PLAYERS; i++)
                                {
                                    if(Player[i][Faction] == 4)
                                    {
                                                                count++;
                                                        }
                                                }
                                                format(string, sizeof(string), "[{FF9838}%s{FFFFFF}] Miembros online: {00B837}%d", Factions[4][FactionName], count); // loose identation
                                                SendClientMessage(playerid, WHITE, string);
Si me pudieran ayudar por favуr estarнa perfecto, gracias.
Reply
#2

pawn Код:
#pragma tabsize 0
arriba de todo, abajo de los includes.
O repara las sangrнas.
Reply
#3

Quote:
Originally Posted by GROVE22
Посмотреть сообщение
pawn Код:
#pragma tabsize 0
arriba de todo, abajo de los includes.
O repara las sangrнas.
+rep, muchas gracias.

EDIT: No me deja, cuando pueda te doy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)