View Single Post
Author Message
Crackhead69
Member
Join Date: Feb 2021
Old 06-13-2021 , 05:53   ERROR: SV_Modelindex Model not prechached
Reply With Quote #1

Hello!
I have a strange error that is occurring randomly, not at start of the plugin.

I have existing plugin as this example, just with different names for easier understanding:
PHP Code:
#include <amxmodx>

new const model_1[] = "models/model_1.mdl"
new const model_2[] = "models/model_2.mdl"

public plugin_init()
    
register_event("CurWeapon""Event_CurWeapon""be")
    
public 
Event_CurWeapon(id){
    
set_pev(idpev_viewmodel2model_1)
    
set_pev(idpev_weaponmodel2model_2)
}


public 
plugin_precache(){
    
precache_model(model_1)
    
precache_model(model_2)

The error occurs from those 2 model files, the files are okay, and used wildly in other servers, this is not problem which occurs from the model file.

It happens often, but it has no fixed timing for when it gives the error.

FATAL ERROR (shutting down): SV_ModelIndex: SV_ModelIndex: model mdl not precach
ed
Segmentation fault

The "model mdl" has different symbols every time the error occurs, although the symbols are representing parts of the names of model_1 and model_2.

What should i look for that can cause this strange error? Is it a Plugin that can cause it, or something else ?
Crackhead69 is offline