AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   How can i fix this warning (https://forums.alliedmods.net/showthread.php?t=302762)

Alexxxxxxxxx 11-10-2017 06:38

How can i fix this warning
 
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);



Alexxxxxxxxx 11-13-2017 16:02

Re: How can i fix this warning
 
No one helps ?

klippy 11-13-2017 16:22

Re: How can i fix this warning
 
Where did you download HLSDK and Metamod from?

Alexxxxxxxxx 11-13-2017 21:18

Re: How can i fix this warning
 
I dont remember, but it's older version

klippy 11-14-2017 04:20

Re: How can i fix this warning
 
Download them from the AlliedModders GitHub.

Alexxxxxxxxx 11-14-2017 10:39

Re: How can i fix this warning
 
where in alliedmodders is that ? can you send me link ?

klippy 11-14-2017 15:44

Re: How can i fix this warning
 
Should've just googled "AlliedModders GitHub".
https://github.com/alliedmodders/


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

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