30.09.2012, 13:33
(
Последний раз редактировалось RLGaming; 30.09.2012 в 20:27.
)
I have this command:
I get no warnings and errors, I have defined everything etc but when i do the cmd then the faction name on the end how can i like update it?
I also have:
But I dont think it will list all the faction name's, since it's only szFacName and nothing to do with the numbers, so how can I make it in order if that makes sense
also my system:
+rep
Quote:
CMD:editfacname(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { new facnumber = MAX_GROUPS, iFac, string[64]; if(sscanf(params, "ds[32]", iFac, arrFaction[facnumber][g_szFactionName])) { return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /editfacname [factionid] [faction name]"); } format(string, sizeof(string), "You have updated faction ID % to %s.", facnumber, arrFaction[facnumber][g_szFactionName]); SendClientMessageEx(playerid, COLOR_WHITE, string); SaveDynamicFactions(); } return 1; } |
I also have:
Quote:
CMD:listfactions(playerid, params[]) { new string[128], iFac, szFacName = arrFaction[iFac][g_szFactionName]; SendClientMessage(playerid, COLOR_GREEN, "|____FACTION LIST____|"); format(string, sizeof(string), "1) %s | 2) %s 3) %s 4) %s 5) %s", szFacName); SendClientMessageEx(playerid, COLOR_WHITE, string); SendClientMessage(playerid, COLOR_GREEN, "|____________________|"); return 1; } |
also my system:
Quote:
enum eFactionInfo { g_FactionID, g_iFactionType, g_szFactionName[GROUP_MAX_NAME_LEN], g_iLockerGuns[MAX_GROUP_WEAPONS], g_iLockerCost[MAX_GROUP_WEAPONS], g_iAllegiance, g_iBugAccess, g_iChatAccess, g_iRadioAccess, g_iDeptRadioAccess, g_hDutyColour, g_hRadioColour, g_iShareAssets, g_iLockerStock, Float: g_fLockerPos[3], g_iLockerVW, Float: g_fCratePos[3], Text3D: g_t3DLabels[2], } |
Quote:
new arrFaction[MAX_GROUPS][eFactionInfo]; |