Raised This Month: $51 Target: $400
 12% 

How can i fix this warning


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode