Raised This Month: $51 Target: $400
 12% 

String to array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 05-27-2015 , 18:27   String to array
Reply With Quote #1

Hello!

Very simple question, how can I make from String array?

String looks like this

weapons = "weapon_awp;weapon_smokegrenade;weapon_deagle "

I want after some kind of function to make it look like this

weapon[0] is weapon_awp
weapon[1] is weapon_smokegrenade
weapon[2] is weapon_deagle


And is it possible to count, how many weapons are in array? Thanks alot!

Last edited by boomix; 05-27-2015 at 18:56.
boomix 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 22:25.


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