AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Precache Issue With Read_File (https://forums.alliedmods.net/showthread.php?t=29631)

mysticssjgoku4 06-09-2006 09:52

Precache Issue With Read_File
 
Hmm, I created this plugin to read the NPC's via file and it needs to precache the specified models in the 6th arguement, problem is, it doesn't precache it right away and the server crashes.

How can I fix this?
Thanks.

Hawk552 06-09-2006 10:03

Remove the set_task on initialize_npcs and just do a straight function call in plugin_init.

EDIT: oh, and by the way, your script sucks. Read the optimization tips in the wiki.

mysticssjgoku4 06-09-2006 10:09

Quote:

Originally Posted by Hawk552
Remove the set_task on initialize_npcs and just do a straight function call in plugin_init.

EDIT: oh, and by the way, your script sucks. Read the optimization tips in the wiki.

Sill get the error.

Hawk552 06-09-2006 10:10

Quote:

Originally Posted by mysticssjgoku4
Quote:

Originally Posted by Hawk552
Remove the set_task on initialize_npcs and just do a straight function call in plugin_init.

EDIT: oh, and by the way, your script sucks. Read the optimization tips in the wiki.

Sill get the error.

Call it in plugin_precache then. My guess is that it's reading the file after it attempts to precache.

mysticssjgoku4 06-09-2006 10:16

*Updated: Fixed nvm.*


All times are GMT -4. The time now is 16:34.

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