Error: could not load file
I'm trying to set player models according to which weapon the player is currently wearing, but without success. I'm having this error in my game console with every single model
Error: could not load file models/player/wbm4a1/wbm4a1.mdl |
Re: Error: could not load file
How are you setting the model? Show the code.
|
Re: Error: could not load file
Tried using some code u provided me earlier, here it is.
PHP Code:
|
Re: Error: could not load file
I am not sure, but I do not think you can have subfolders for player models. For example a model called test.mdl should be inside models/player/test/test.mdl not models/player/subfolder/test/test.mdl
|
Re: Error: could not load file
Quote:
|
Re: Error: could not load file
That's right. Player model paths are hardcoded in the engine. You musy obey the path rule for all models, so don't change the one I put in the function.
|
Re: Error: could not load file
Thanks for the help, that solved my problem :)
|
Re: Error: could not load file
One more question about the code, as u can see i specify models to be set only for certain teams since certain guns are only available to T's or CT's. So the problem is that i have empty spaces that should fill in the team, causing my models not to be set, how can i fix this?
Current code: PHP Code:
PHP Code:
|
Re: Error: could not load file
Try this:
PHP Code:
|
Re: Error: could not load file
Awesome, thanks Bugsy. Worked like a charm :)
|
| All times are GMT -4. The time now is 02:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.