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

How can i fix this warning


Post New Thread Reply   
 
Thread Tools Display Modes
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
Alexxxxxxxxx
Member
Join Date: Aug 2017
Old 11-13-2017 , 16:02   Re: How can i fix this warning
Reply With Quote #2

No one helps ?
Alexxxxxxxxx is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-13-2017 , 16:22   Re: How can i fix this warning
Reply With Quote #3

Where did you download HLSDK and Metamod from?
klippy is offline
Alexxxxxxxxx
Member
Join Date: Aug 2017
Old 11-13-2017 , 21:18   Re: How can i fix this warning
Reply With Quote #4

I dont remember, but it's older version
Alexxxxxxxxx is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-14-2017 , 04:20   Re: How can i fix this warning
Reply With Quote #5

Download them from the AlliedModders GitHub.
klippy is offline
Alexxxxxxxxx
Member
Join Date: Aug 2017
Old 11-14-2017 , 10:39   Re: How can i fix this warning
Reply With Quote #6

where in alliedmodders is that ? can you send me link ?
Alexxxxxxxxx is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-14-2017 , 15:44   Re: How can i fix this warning
Reply With Quote #7

Should've just googled "AlliedModders GitHub".
https://github.com/alliedmodders/
klippy is offline
Reply


Thread Tools
Display Modes

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 16:19.


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