HTML Code:
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(115) : error 032: array index out of bounds (variable "g_iWeaponSlot")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(127) : error 032: array index out of bounds (variable "g_iWeaponSlot")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(144) : error 032: array index out of bounds (variable "g_iDropWeapon")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(145) : error 032: array index out of bounds (variable "g_iDropWeapon")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(146) : error 032: array index out of bounds (variable "g_iDropWeapon")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(183) : error 032: array index out of bounds (variable "g_iWeaponSlot")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(184) : error 032: array index out of bounds (variable "g_iWeaponSlot")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(271) : error 032: array index out of bounds (variable "g_iWeaponSlot")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(272) : error 032: array index out of bounds (variable "g_iWeaponSlot")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(420) : error 032: array index out of bounds (variable "g_iDropWeapon")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(421) : error 032: array index out of bounds (variable "g_iDropWeapon")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(422) : error 032: array index out of bounds (variable "g_iDropWeapon")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(430) : error 032: array index out of bounds (variable "g_iWeaponSlot")
C:\Programming\SorucePawn\Compile\include\tfcs/tfcs_weapon.sp(446) : error 032: array index out of bounds (variable "g_iWeaponSlot")
Code
Code:
enum WeaponList {
String:WL_OriginName[DEF_STRLEN],
WL_CSType,
WL_CSMoney,
bool:WL_SilencerAllowed
};
enum WeaponMainInfo {
String:WMI_Name[DEF_STRLEN], // 무기 이름
bool:WMI_IsActive = false, // 무기 사용 가능 여부
WMI_CSIndex = -1, // 무기 카스 인덱스
WMI_Entity = INVALID_ENT_REFERENCE, // 무기 실존시
bool:WA_HasSilencer = false,
Float:WA_SilencerIn,
Float:WA_SilencerOut,
WL_TFAmmo,
WL_TFClip
};
Code:
// Main Enum Variables
//new g_iWeaponType[MAX_TYPES]
new g_iWeaponList[MAX_INDEXES][WeaponList]; // Weapon List Bus
new g_iWeaponSlot[MAXPLAYERS+1][MAX_SLOT][WeaponMainInfo]; // Main Bus
Code:
if(StrEqual(arg, "cs_iIndex")) g_iWeaponSlot[client][slot][WMI_CSIndex] = StringToInt(arg2);
if(StrEqual(arg, "cs_iEntity")) g_iWeaponSlot[client][slot][WMI_Entity] = StringToInt(arg2);
Code:
g_iDropWeapon[entity][DI_CSIndex] = -1
g_iDropWeapon[entity][DI_TFAmmo] = -1
g_iDropWeapon[entity][DI_TFAmmo] = -1
g_iDropWeapon[entity][DI_HasSilencer] = false
hanging on these error for 1 week... please.. help me