get_user_weapon2()
get_user_weapon2 PHP Code:
Do you even wanted to return weapon name in format like: usp, knife?.: Example usage #1 :. .: Example usage #2 :.
|
Re: get_user_weapon2()
good :)
|
Re: get_user_weapon2()
szWeapon size is too small to contain "weapon_smokegrenade"
You don't need this badly named var szWeaponCSW ( <- it's an integer so iWeaponCSW would have been better if the var had been needed) PHP Code:
|
Re: get_user_weapon2()
updated :)
|
Re: get_user_weapon2()
To avoid to use replace() ; using szWeapon[7] directly should work.
[edit] Arg, it will give an error "Array must be indexed" for the #2. Not good. Though, using szWeapon[0] to get should work, but not sure if it's a good idea. |
Re: get_user_weapon2()
GJ :D
|
Re: get_user_weapon2()
I've always used szWeapon[7] to solve this. It would be cool to have this implemented into the core though.
|
Re: get_user_weapon2()
Quote:
|
Re: get_user_weapon2()
Shouldn't the function's name be more appropriate, such as get_user_weaponname()?
|
Re: get_user_weapon2()
i thought there allready was a get_user_weaponname?
It returns "weapon_" EDIT: My bad its just get_weaponname(index) |
| All times are GMT -4. The time now is 23:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.