AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   asdasd (https://forums.alliedmods.net/showthread.php?t=224050)

Kellan123 08-19-2013 15:38

asdasd
 
sadasdsad

Black Rose 08-19-2013 16:15

Re: Action Weapons
 
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.

Kellan123 08-20-2013 07:18

Re: Action Weapons
 
Quote:

Originally Posted by Black Rose (Post 2017428)
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.


All times are GMT -4. The time now is 16:00.

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