Multi-dimensional arrays must be fully initialized
#1

Never mind, sorta fixed it now.
Reply
#2

enum EFactionInfo {
EFactionName[MAX_FACTION_NAME],
EFactionNumRanks,
FactionType:EFactionType, // I think there should be a ","
};

enum Name this Enum {
EFactionDialog_EquipChoose = EFactionsDialog_Base + 1,
EFactionDialog_ArrestDialog,
EFactionsDialog_CustomArrest,
EFactionsDialog_BailPrice,
EFactionsDialog_InviteDialog,
EFactionDialog_LiveOffer,
EFactionsDialog_CopPlace,
EFactionsDialog_HitmanOrder,
EFactionsDialog_LEOCompOptions,
EFactionsDialog_LEOReqBackups,
EFactionsDialog_ShowBizList,
};
Reply
#3

You can't set the value of an index in enum, like you did with this:
pawn Код:
EFactionDialog_EquipChoose = EFactionsDialog_Base + 1,
Reply
#4

PHP код:
#define MAX_FACTION_RANKS 16
#define MAX_FACTION_NAME 32
#define FACTION_OOC_COLOUR 0x7BDDA5AA
enum EFactionInfo {
    
EFactionName[MAX_FACTION_NAME],
    
EFactionNumRanks,
    
FactionType:EFactionType
};
enum {
    
EFactionDialog_EquipChoose EFactionsDialog_Base 1,
    
EFactionDialog_ArrestDialog,
    
EFactionsDialog_CustomArrest,
    
EFactionsDialog_BailPrice,
    
EFactionsDialog_InviteDialog,
    
EFactionDialog_LiveOffer,
    
EFactionsDialog_CopPlace,
    
EFactionsDialog_HitmanOrder,
    
EFactionsDialog_LEOCompOptions,
    
EFactionsDialog_LEOReqBackups,
    
EFactionsDialog_ShowBizList,
};
new 
Factions[][EFactionInfo] = {{"None",1EFactionType_None},
                                {
"LSPD",16,EFactionType_LEO},
                                {
"FBI",8,EFactionType_LEO},
                                {
"Government",6,EFactionType_Government},
                                {
"SAN News"6EFactionType_SanNews},
                                {
"Hitman",6,EFactionType_Hitman},
                                {
"LSFD",12,EFactionType_FD}
                                
//{"SADPS",6,EFactionType_LEO},
                                //{"LS City Transit Police",8,EFactionType_LEO}
                                
};
                                
new 
RankTitles[sizeof(Factions)][MAX_FACTION_RANKS][64] = {{"None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None"},
                                                            
//{"Cadet", "Officer", "Lead Officer", "Senior Lead Officer", "3rd Class Detective", "Sergeant" , "2nd Class Detective", "Staff Sergeant", "1st Class Detective", "Lieutenant","Captain", "Major", "Commander", "Deputy Chief", "Assistant Chief","Chief"},
                                                            
{"Cadet","Police Officer I","Police Officer II","Lead Officer","Detective I","Sergeant I","Detective II","Staff Sergeant","Detective III","Lieutenant I","Lieutenant II","Captain I","Captain II","Commander","Assistant Chief","Chief of Police"},
                                                            {
"Probie","Intern","Staff","Agent","Senior Agent","Special Agent","Deputy Director","Director","None","None","None","None","None","None","None","None"},
                                                            {
"Intern","Body Guard","District Attorney","Head of Security","State Secretary","Mayor","None","None","None","None","None","None","None","None","None","None"},
                                                            {
"Intern","Local Reporter","Local Editor","Network Anchor","Network Editor","Network Producer","None","None","None","None","None","None","None","None","None","None"},
                                                            {
"Stalker","Psychopath","Serial Killer","Silent Assassin","Evil Eye Gouger","Prince of Darkness","None","None","None","None","None","None","None","None","None","None"},
                                                            {
"Probationary Firefighter","Firefighter I","Firefighter II","EMT-Firefighter","Paramedic","Paramedic I","Paramedic II","Paramedic","Paramedic","Ambulance Supervisor","Paramedic","Paramedic","None","None","None","None"}};
                                                            
//{"Trooper in Training", "Trooper", "Honorary Trooper", "Senior Trooper", "HP Trooper", "HP Sergeant" , "TET Trooper", "TET Sergeant", "Sergeant", "Staff Sergeant","Lieutenant", "Captain", "Major", "Commander","Assistant Commisioner","Commisioner"},
                                                            //{"Police Officer","Field Training Officer","Sergeant","Lieutenant","Captain","Inspector","Deputy Chief","Chief","None","None","None","None","None","None","None","None"}}; 
If this doesnt fix it then your error is somewhere else.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)