COMMAND:factions(playerid, params[])
{
new iCount;
FactionLoop(f)
{
if(FactionInfo[f][fActive] != true) continue;
iCount++;
}
if(iCount == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "There are currently no active factions in the server!");
FactionLoop(f)
{
if(FactionInfo[f][fActive] != true) continue;
SendClientMSG(playerid, FactionInfo[f][fColour], " - %s | Online: %d | Members: %d / %d", FactionInfo[f][fName], GetOnlineMembers(f), GetTotalMembers(f), FactionInfo[f][fMaxMemberSlots]);
printf("%s",FactionInfo[f][fName]);
}
return 1;
}
stock SendClientMSG(playerid, color, fstring[], {Float, _}:...)
{
#define BYTES_PER_CELL 4
static const
STATIC_ARGS = 3;
new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
if (n)
{
new message[128], arg_start, arg_end;
#emit CONST.alt fstring
#emit LCTRL 5
#emit ADD
#emit STOR.S.pri arg_start
#emit LOAD.S.alt n
#emit ADD
#emit STOR.S.pri arg_end
do
{
#emit LOAD.I
#emit PUSH.pri
arg_end -= BYTES_PER_CELL;
#emit LOAD.S.pri arg_end
}
while (arg_end > arg_start);
#emit PUSH.S fstring
#emit PUSH.C 128
#emit PUSH.ADR message
n += BYTES_PER_CELL * 3;
#emit PUSH.S n
#emit SYSREQ.C format
n += BYTES_PER_CELL;
#emit LCTRL 4
#emit LOAD.S.alt n
#emit ADD
#emit SCTRL 4
return SendPlayerMessage(playerid, color, message, "");
}
else return SendPlayerMessage(playerid, color, fstring, "");
}
https://sampforum.blast.hk/showthread.php?tid=570635 - that's like the third time I'm giving you this link because I assume you haven't even opened it yet
|
Using stock inside is actually worth it. If the programmer (scripter in this community) forgot to use this function
|
If someone "forgot" it then it means the function wasn't needed at all and it shouldn't be there.
|
If you're not going to use the function right now, why not just comment it out then? xD
|