04.10.2013, 13:36
I just realized that my /factions command suddenly doesnt work, when I posted this, if you did /createfac, it would show the faction Name and ID, now it doesn't even do it if you create a new faction? (Note: player's faction on spawn is 0, therefore there is a faction called "None" set for ID 0 and it bypasses that.
pawn Код:
CMD:factions(playerid, params[])
{
SCM(pid, COLYELLOW, "Factions");
new index = 0, string[100];
for(new i = 0; i < 10; i++)
{
if(FactionInfo[i][fID] == 0)
{
return 1;
}
else
{
format(string, sizeof(string), "ID %d: %s", FactionInfo[i][fID], FactionInfo[i][fName]);
SCM(pid, COLGREY, string);
index++;
return 1;
}
}
return 1;
}