Raised This Month: $ Target: $400
 0% 

Solved Help with strings


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-12-2017 , 23:40   Re: Help with strings
Reply With Quote #1

What?

Code:
entity_set_model(iWeaponBox, "models/weapon/w_%s.mdl", sWeaponModel)

Quote:
/* Sets the model of an Entity. */
native entity_set_model(iIndex, const szModel[]);
Then what do you can do is:

Code:
formatex(szModel, charsmax(szmodel), "models/weapon/w_%s", W_MODEL)...

Use entity_set_string(owner, EV_SZ_[view|weapon]model) instead of pev.
__________________









Last edited by CrazY.; 07-12-2017 at 23:43.
CrazY. is offline
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 22:45.


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