Editing a faction type
#1

Код:
CMD:editfactype(playerid, params[])
{
	new facnumber = MAX_GROUPS, iFac, factype, string[64];
	if(PlayerInfo[playerid][pAdmin] >= 5)
	{
	if(sscanf(params, "di", facnumber, factype)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /editfacname [playerid] [1 - 4 [/factypes]]");

	if(arrFaction[iFac][g_iFactionType])
	{
	format(string, sizeof(string), "You have updated faction ID %D to faction type %i.", facnumber, factype);
	SendClientMessageEx(playerid, COLOR_WHITE, string);
	arrFaction[iFac][g_iFactionType] = factype;
	}
	}
	return 1;
}
The command ^

Basically, I have everything defined etc, no warnings or errors - But, im so confused with this, as in how can I set the factionID I enter for the CMD and then set it to a type I chose, IE a number(1 - 4)

So how can i make it so it updates that ID and saves?~

+rep
Reply


Messages In This Thread
Editing a faction type - by RLGaming - 30.09.2012, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)