Hey everyone. I've made a private plugin for myself but I have a wierd problem. In the plugin there is a code to precache some models. For some reason, whenever I start a room, my game always crashes. Here is the line of code which precaches the models.
PHP Code:
new const speed_zombi[] = {
"models/player/speed_zombi_host/speed_zombi_host.mdl",
"models/player/speed_zombi_origin/speed_zombi_origin.mdl"
}
public plugin_precache() {
new i
for(i = 0; i < sizeof speed_zombi; i++)
precache_model(speed_zombi[i])
}
and when I start the game I get this error.
---------------------------
Fatal Error
---------------------------
Mod_NumForName: odels/player/speed_zombi_host/speed_zombi_host.mdl not found
---------------------------
OK
---------------------------
Why does the Mod_NumForName change the location from models to odels? I dont understand that. Hope to get some replies with help soon.
__________________