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-19-2013 , 15:38   asdasd
Reply With Quote #1

sadasdsad

Last edited by Kellan123; 10-26-2018 at 17:43.
Kellan123 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-19-2013 , 16:15   Re: Action Weapons
Reply With Quote #2

For example:
Code:
new weapon[32]; formatex(weapon, charsmax(weapon), "weapon_%s", weapon_names[i]);
or
Code:
new weapon[32] = "weapon_"; copy(weapon[7], charsmax(weapon)-7, weapon_names[i]);

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.
__________________
Black Rose is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 08-20-2013 , 07:18   Re: Action Weapons
Reply With Quote #3

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


Thread Tools
Display Modes

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