22.02.2017, 14:18
I recive that error:
I own that code:
Script:
Код HTML:
forward SendFactionMessage(faction, color, string[]);
Код HTML:
error 004: function "SendFactionMessage" is not implemented
Код HTML:
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;
}


