Raised This Month: $ Target: $400
 0% 

Argument question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nooblet
New Member
Join Date: Dec 2005
Old 04-23-2007 , 01:00   Argument question
Reply With Quote #1

Alright, so I was curious if you could make an argument a string and have it where a user types a weapon and it enters it (for an include) here is an example of what I am trying to say:

myowninclue.inc
Code:
stock give_gun(index, weapon) {     give_item(index, "weapon_" + weapon) }

So they can decide on which weapon they are going to give to a player. Is this possible or what?
nooblet is offline
 



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 06:43.


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