Raised This Month: $ Target: $400
 0% 

asdasd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 08-20-2013 , 07:18   Re: Action Weapons
Reply With Quote #1

Quote:
Originally Posted by Black Rose View Post
For example:

Code:
</p><p>new weapon[32];</p><p>formatex(weapon, charsmax(weapon), "weapon_%s", weapon_names[i]);</p><p>


or

Code:
</p><p>new weapon[32] = "weapon_";</p><p>copy(weapon[7], charsmax(weapon)-7, weapon_names[i]);</p><p>



CSW_%s
This is not valid and is not a string. CSW_... represents a number, you can use any integer or the constants. It really depends on what you want to do. If you want to loop you just use the loop integer instead of the constants.
How i add.
Kellan123 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 16:00.


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