View Single Post
  #2  
Old 08-15-2007, 01:20 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
temp.testtype = {"race""spar"};
temp.elist.race = {{"Foot Race","bla"}, {"Bush Race","bla"}};
temp.elist.spar = {{"Spar","bla"}, {"Classic Spar","bla"};

serverr.events.(@ temp.testtype[0]) = {};
serverr.events.(@ temp.testtype[0])[0] = temp.elist.(@ temp.testtype[0])[0][0];
serverr.events.(@ temp.testtype[0])[1] = temp.elist.(@ temp.testtype[0])[1][0];

serverr.events.(@ temp.testtype[1]) = {};
serverr.events.(@ temp.testtype[1])[0] = temp.elist.(@ temp.testtype[1])[0][0];
serverr.events.(@ temp.testtype[1])[1] = temp.elist.(@ temp.testtype[1])[1][0]; 
hmm?

I think you need to initialize the array first, for example with {} or new[1]
__________________
Reply With Quote