forward SendFactionMessage(faction, color, string[]);
error 004: function "SendFactionMessage" is not implemented
CMD:invite(playerid, params[]) { new pID; if(sscanf(params, "ud", pID)) return SendClientMessage(playerid, COLOR_GREY, "[Usage:] /invite [playerid/partofname]"); if(!IsPlayerConnected(pID)) return SCM(playerid, COLOR_LIGHTRED,"That player is not connected."); if(PlayerInfo[playerid][fRank] > 2) { new string[128]; new faction = PlayerInfo[playerid][pFaction]; format(string, sizeof(string), "You have been invited to join %s. (/acceptinvite)", FactionInfo[faction][fName]); SendClientMessage(pID, COLOR_FACTIONCHAT, string); format(string, sizeof(string), "You have sent an invitation to %s.", GetName(pID)); SendClientMessage(playerid, COLOR_FACTIONCHAT, string); factionInvited[pID] = true; Player_Invited[pID] = playerid; } return 1; }
forward SendFaction(faction, color, string[]);
forward SendFaction(faction, color, string[]);
Show the whole function of
Код:
forward SendFaction(faction, color, string[]); |
stock SendFactionMessage(col, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pFaction] > 0)
SendClientMessage(i, col, string);
}
return 1;
}
forward SendFactionMessage(faction, color, string[]);
stock SendFactionMessage(col, string[])
Код:
forward SendFactionMessage(faction, color, string[]); Код:
stock SendFactionMessage(col, string[]) |
stock SendFactionMessage(col, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pFaction] > 0)
SendClientMessage(i, col, string);
}
return 1;
}
stock SendAdminMessage(col, string[])
forward SendFactionMessage(faction, color, string[]);
stock SendFactionMessage( ... , col, string[])
Код:
forward SendFactionMessage(faction, color, string[]); Код:
stock SendFactionMessage( ... , col, string[]) |
stock SendFactionMessage(faction, col, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pFaction] > 0)
SendClientMessage(i, col, string);
}
return 1;
}