Raised This Month: $32 Target: $400
 8% 

Solved [Problem] cs_player_models_api


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-08-2019 , 14:24   [Problem] cs_player_models_api
Reply With Quote #1

ERROR:
Code:
FATAL ERROR (shutting down): Mod_LoadModel: models/player/Infected_Model/In not
found

Code:
native cs_set_player_model(pPlayer, const szModel[]);
Code:
	new szModel[32];
	formatex(szModel, charsmax(szModel), "models/player/%s/%s.mdl", g_szInfectedModel, g_szInfectedModel);
	precache_model(szModel);
Setting:
Code:
cs_set_player_model(pId, g_szInfectedModel);

Last edited by Fuck For Fun; 07-08-2019 at 14:37.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
thEsp
BANNED
Join Date: Aug 2017
Old 07-08-2019 , 14:28   Re: [Problem] cs_player_models_api
Reply With Quote #2

You don't need to add "models/player/" to model location when using cstrike module/natives, if I remember correctly.
I noticed that you are using an API, but seeing the log it's probably due to a inexistent model.

Last edited by thEsp; 07-08-2019 at 14:30.
thEsp is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-08-2019 , 14:30   Re: [Problem] cs_player_models_api
Reply With Quote #3

Obviously, it gets cut off.
Length of 32 is too short.
__________________
<VeCo> is offline
Old 07-08-2019, 14:34
Fuck For Fun
This message has been deleted by Fuck For Fun. Reason: TESTINH
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-08-2019 , 14:36   Re: [Problem] cs_player_models_api
Reply With Quote #4

Quote:
Originally Posted by <VeCo> View Post
Obviously, it gets cut off.
Length of 32 is too short.
Thanks you, worked

- My mistake, because it is known to be above the number of characters I have defined.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
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 06:50.


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