Raised This Month: $51 Target: $400
 12% 

Another problem with precache model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ROKronoS
Senior Member
Join Date: Oct 2010
Location: Bucharest, Romania
Old 01-03-2011 , 03:36   Another problem with precache model
Reply With Quote #1

Hi!I have another with precache model after using this tutorial: http://forums.alliedmods.net/showthr...nu+item+native .I added in the zombie classes structure a model for the knife:
Code:
enum _:ClassData
{
    ClassName[32],
    ClassDes[32],
    ClassModel[32],
    ClassClaw[32],
    ClassHP,
    ClassSpeed,
    ClassGrav
}
When the native wich registers the zombie class is called, i precache the model:
Code:
new zombieClaw[128]
formatex(zombieClaw, charsmax(zombieClaw), "models/zombie_deathmatch/%s", eClassData[ClassClaw])
precache_model(zombieClaw)
If a player plays on the server and he want's to see to model of the knife , the server crashes because the model is not precached.
ROKronoS is offline
Old 01-04-2011, 11:40
Elusive138
This message has been deleted by Elusive138. Reason: ...
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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