Loading Precaches with FRIK_FILE
Moderator: InsideQC Admins
6 posts
• Page 1 of 1
Loading Precaches with FRIK_FILE
I've tried this with my code and code that GiffE gave me in #qc... and it just doesn't work.
I have these in a file that is loaded:
progs/player.mdl
progs/soldier.mdl
but can't make them precache. DP still says that I didn't precache player.mdl and tells me to fix my code.
if I get the time, I'll get on my lappy and paste the code.
I have these in a file that is loaded:
progs/player.mdl
progs/soldier.mdl
but can't make them precache. DP still says that I didn't precache player.mdl and tells me to fix my code.
if I get the time, I'll get on my lappy and paste the code.
-

Error - InsideQC Staff
- Posts: 865
- Joined: Fri Nov 05, 2004 5:15 am
- Location: VA, USA
I'm basically trying to make it possible for people to add new content just through my npc scripting language.
-

Error - InsideQC Staff
- Posts: 865
- Joined: Fri Nov 05, 2004 5:15 am
- Location: VA, USA
here is the code GiffE gave me, and can't figure out why it doesn't work:
this is being called right from where I had normally done precaches
- Code: Select all
void() precache_script =
{
local float f;
local string ln;
f = fopen("precache.txt", FILE_READ);
if (f != -1)
{
ln = fgets(f);
while(ln != string_null)
{
if(strstrofs(ln, ".wav",0) != -1)
precache_sound(ln);
else
precache_model(ln);
ln = fgets(f);
}
}
};
this is being called right from where I had normally done precaches
-

Error - InsideQC Staff
- Posts: 865
- Joined: Fri Nov 05, 2004 5:15 am
- Location: VA, USA
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: Bing [Bot] and 1 guest