View Single Post
Author Message
Alexxxxxxxxx
Member
Join Date: Aug 2017
Old 11-10-2017 , 06:38   How can i fix this warning
Reply With Quote #1

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 PrecacheModeledict_t *char_model )
{
    
g_int_shockwave =    g_engfuncs.pfnPrecacheModel"sprites/shockwave.spr" );

    
RETURN_META_VALUEMRES_IGNORED);
}

int PrecacheSoundedict_t *char_sound )
{
    
g_engfuncs.pfnPrecacheSound"items/gunpickup2.wav" );

    
RETURN_META_VALUEMRES_IGNORED);


Last edited by Alexxxxxxxxx; 11-10-2017 at 06:40.
Alexxxxxxxxx is offline