Raised This Month: $ Target: $400
 0% 

Strings in enums?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-19-2011 , 19:34   Re: Strings in enums?
Reply With Quote #1

Quote:
Originally Posted by Exolent[jNr] View Post
Then you can do this:
Code:
new const g_weapon_name[PrimaryWeapons][] = { "weapon_m4a1", "weapon_ak47", "weapon_sg552", "weapon_aug", "weapon_m3", "weapon_mp5navy", "weapon_m249", "weapon_awp" }; new const g_weapon_ammo[PrimaryWeapons][] = { "556nato", "762nato", "556nato", "556nato", "buckshot", "9mm", "556natobox", "338magnum" }; // .. give_item(id,g_weapon_name[g_primary[id]]); ExecuteHam(Ham_GiveAmmo, id, 200, g_weapon_ammo[g_primary[id]], 200);
is Ham_GiveAmmo better then the cs natives?
Doc-Holiday is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-19-2011 , 19:39   Re: Strings in enums?
Reply With Quote #2

Quote:
Originally Posted by Doc-Holiday View Post
is Ham_GiveAmmo better then the cs natives?
Not sure. I was just following his code.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 01:08.


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