Okay, so I'm making an Events System, and I have the events setup like this:
Theres 4 different event types, each has it's own multidimensional array with the
event names and their data in it. What I'm stuck on is trying to make a list of each event in its category in serverr flags. Ex: serverr.events.contest=Musical Chairs, Emoticons
Now, to spare you with all the for loops and such, here's essentially what I'm trying to do:
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])[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[0])[0] = temp.elist.(@ temp.testtype[1])[0][0];
serverr.events.(@ temp.testtype[0])[1] = temp.elist.(@ temp.testtype[1])[1][0];
My problem is that the serverr flags will not set.