for (i=0; i < menu_db.length; i++)
{
temp = menu_db.split(";");
menu[i] = new menuobject(temp[0], temp[1]);
}
Name:
Anonymous2006-06-23 3:21
oops... copy-pasta is very hard...
This is different:
menu_db = menu_db.split(";");
for (i=0; i < menu_db.length; i++)
{
temp = menu_db.split("|");
menu[i] = new menuobject(temp[0], temp[1]);
}
Name:
Anonymous2006-06-23 7:25
Ok, I know what the problem was...
The problem was that JAVASCRIPT THINKS THAT I INITIALIZED A GLOBAL VAR WHICH WAS INSIDE A DAMN FUNCTION!!!!!
WHY THE FUCKING HELL DO YOU THINK I WROTE IT _INTO_ THE FUNCTION, YOU ASSWIPE?
So, the value of the var got wrong and changed stuff.
I'm happy, that this is over...
menu_db = menu_db.split(";");
for (i=0; i < menu_db.length; i++)
{
temp = menu_db.split("|");
menu[i] = new menuobject(temp[0], temp[1]);
}look at 'temp = menu_db.split("|");'. do you want this to do the same exact thing on every iteration of the loop? because it doesn't seem to include 'i' anywhere in the expression :)
you probably mean temp = menu_db[i].split("|")
Name:
Anonymous2006-06-25 9:03
>>7
no, c++, but I wouldn't consider me a mastar hacker :P
I used examples from selfhtml.org and the did it this way. Thanks for the info.
>>11
oops... I actually did. If I didn't I'd get errors.
Name:
Anonymous2006-11-14 21:25
java...SCRIPT!
Name:
Anonymous2009-01-14 5:26
Learn arrays and use the proper index. Arrays begin with 0
Name:
Anonymous2009-03-06 7:28
The fetal position cover in my own from scratch fuck you all cocksuckers.