Raised This Month: $ Target: $400
 0% 

Scooping out pieces of a string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
edeloa
Member
Join Date: Mar 2007
Location: Redwood City, Ca
Old 04-07-2007 , 02:42   Scooping out pieces of a string
Reply With Quote #1

Hey all,

My ultimate goal is to get the name of the weapon a user is holding. So for example, when a player is holding an AK47, I want to have a variable holding "AK47".

get_weaponname() does something similar ... only it adds "weapon_" in front of the name .... so the AK47 would look like "weapon_AK47".

I'm looking for a way to scoop out "AK47" from "weapon_AK47"

This is what I have so far....
Code:
new weapName[32]
get_weaponname(wepID, weapName, 32)
edeloa is offline
Send a message via AIM to edeloa Send a message via MSN to edeloa
 


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


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