Quote:
Originally Posted by Kreation
For one, this should be -->
PHP Code:
new const g_nad_classnames[Grenades][] = { CSW_HEGRENADE, CSW_HEGRENADE, CSW_FLASHBANG, CSW_SMOKEGRENADE }; new const g_nade_classnames[Grenades][] = { "weapon_hegrenade", "weapon_hegrenade", "weapon_flashbang", "weapon_smokegrenade" };
And to do that I'm pretty sure you just add the above to the top of your plugin to make them global.
|
No. You must remove the second level from the first array. Like this:
PHP Code:
new const g_nad_classnames[Grenades] =
{
CSW_HEGRENADE,
CSW_HEGRENADE,
CSW_FLASHBANG,
CSW_SMOKEGRENADE
};