09.03.2013, 19:44
(
Последний раз редактировалось Lucio500; 09.03.2013 в 19:45.
Причина: Olvidй [/pawn]
)
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:
Si me pudieran ayudar por favуr estarнa perfecto, gracias.
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);