Hello! i want to precache some models and sounds with "int PrecacheModel" and "int PrecacheSound"
but i get this warning twice from amxmodule.cpp
warning: invalid conversion from ‘int (*)(const char*)’ to ‘int (*)(char*) [-fpermissive]
when i do with "int DispatchSpawn( edict_t * pSpawned )" it is okay
PHP Code:
int PrecacheModel( edict_t *char_model )
{
g_int_shockwave = g_engfuncs.pfnPrecacheModel( "sprites/shockwave.spr" );
RETURN_META_VALUE( MRES_IGNORED, 0 );
}
int PrecacheSound( edict_t *char_sound )
{
g_engfuncs.pfnPrecacheSound( "items/gunpickup2.wav" );
RETURN_META_VALUE( MRES_IGNORED, 0 );
}