Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dvar as list
#1
Let's say I have this dvar:
Code:
dvarname2 "banana apple pie"

Now how could I convert this dvar to a list so that it's something like this:
Code:
dvarsitems[0]= "banana"
dvarsitems[1]= "apple"
dvarsitems[2]= "pie"
Would like to make a donation? Click here
Reply

#2
Code:
dvarsitems = StrTok(dvarname2," ");
iprintlnbold(dvarsitems[1]); //print apple
[Image: MaEIQ.png]
Reply

#3
(02-12-2012, 12:27)Pozzuh Wrote:
Code:
dvarsitems = StrTok(dvarname2," ");
iprintlnbold(dvarsitems[1]); //print apple
Awsome! Smile

Would like to make a donation? Click here
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Server not in list, but people join 99IRock 8 7,117 07-17-2013, 21:26
Last Post: clacki
  List of models that can be spawned? (Looking for C4 model) akillj 5 4,801 06-27-2013, 13:35
Last Post: Yamato
  [Request] mw3 all map list ( aslo DLC) raminr63 5 14,987 06-18-2013, 19:50
Last Post: mn_acer1
Big Grin Killstreaks HUD list Puffiamo 9 9,958 06-18-2013, 18:42
Last Post: RaZ
  [Release] -InSaNe-'s DVAR Console dylankrajewski 41 25,321 06-16-2013, 14:50
Last Post: lark
  Where can I find a list of scripting commands that correspond to ingame buttons? akillj 2 3,119 06-03-2013, 10:38
Last Post: Yamato
  Black ops 1 External console/Dvar unlocker Jakeyellis 10 11,049 05-05-2013, 13:00
Last Post: barata
  [Request] List of all weapon models DidUknowiPwn 3 4,636 04-20-2013, 09:13
Last Post: Dominator56
  [Request] list models box [HARD] Tony. 3 3,702 03-01-2013, 14:59
Last Post: 99IRock
  Help Getting list of player id's koro35 9 6,036 01-06-2013, 21:31
Last Post: koro35

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.